Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor
AbstractHtmlProcessor::renderBodyContent
Renders the content of the BODY element of the normalized and processed HTML.
Метод класса: AbstractHtmlProcessor{}
Хуков нет.
Возвращает
string.
Использование
$AbstractHtmlProcessor = new AbstractHtmlProcessor(); $AbstractHtmlProcessor->renderBodyContent(): string;
Код AbstractHtmlProcessor::renderBodyContent() AbstractHtmlProcessor::renderBodyContent WC 11.2.1
public function renderBodyContent(): string
{
$htmlWithPossibleErroneousClosingTags = $this->getDomDocument()->saveHTML($this->getBodyElement());
$bodyNodeHtml = $this->removeSelfClosingTagsClosingTags($htmlWithPossibleErroneousClosingTags);
return (new Preg())->replace('%</?+body(?:\\s[^>]*+)?+>%', '', $bodyNodeHtml);
}