Automattic\WooCommerce\EmailEditor\Engine\Renderer
Html2Text::is_office_document
Can we guess that this HTML is generated by Microsoft Office?
Метод класса: Html2Text{}
Хуков нет.
Возвращает
true|false. True if this appears to be an Office document.
Использование
$result = Html2Text::is_office_document( $html ): bool;
- $html(строка) (обязательный)
- The HTML content.
Код Html2Text::is_office_document() Html2Text::is office document WC 10.4.3
public static function is_office_document( string $html ): bool {
return strpos( $html, 'urn:schemas-microsoft-com:office' ) !== false;
}