Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier\HtmlProcessor
AbstractHtmlProcessor::removeSelfClosingTagsClosingTags
Eliminates any invalid closing tags for void elements from the given HTML.
Метод класса: AbstractHtmlProcessor{}
Хуков нет.
Возвращает
string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->removeSelfClosingTagsClosingTags( $html ): string;
- $html(строка) (обязательный)
- .
Код AbstractHtmlProcessor::removeSelfClosingTagsClosingTags() AbstractHtmlProcessor::removeSelfClosingTagsClosingTags WC 11.3.0
private function removeSelfClosingTagsClosingTags(string $html): string
{
return (new Preg())->replace('%</' . self::PHP_UNRECOGNIZED_VOID_TAGNAME_MATCHER . '>%', '', $html);
}