$currency ) ); $stripped = wp_strip_all_tags( (string) $html ); $text = html_entity_decode( $stripped, ENT_QUOTES | ENT_HTML5, 'UTF-8' ); return trim( preg_replace( '/\s+/u', ' ', $text ) ?? $text ); } return number_format( $numeric, 2, ',', '.' ) . ( '' !== $currency ? ' ' . $currency : '' ); } }