Automattic\WooCommerce\EmailEditor\Engine\Renderer

Html2Text::is_office_documentpublic staticWC 1.0

Can we guess that this HTML is generated by Microsoft Office?

Method of the class: Html2Text{}

No Hooks.

Returns

true|false. True if this appears to be an Office document.

Usage

$result = Html2Text::is_office_document( $html ): bool;
$html(string) (required)
The HTML content.

Html2Text::is_office_document() code WC 10.5.0

public static function is_office_document( string $html ): bool {
	return strpos( $html, 'urn:schemas-microsoft-com:office' ) !== false;
}