Automattic\WooCommerce\Internal\Utilities

PriceSeparators::to_plain_text │ private static │ WC 1.0

Decode HTML entities in a separator. Separators are plain text, so markup characters are dropped.

Method of the class: PriceSeparators{}

No Hooks.

Returns

string.

Usage

$result = PriceSeparators::to_plain_text( $separator ): string;
$separator(string) (required)
The stored separator.

PriceSeparators::to_plain_text() code WC 11.3.0

private static function to_plain_text( string $separator ): string {
	return str_replace( array( '<', '>' ), '', html_entity_decode( $separator, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5 ) );
}