Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor

AbstractHtmlProcessor::setHtmlprivateWC 1.0

Sets the HTML to process.

Method of the class: AbstractHtmlProcessor{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->setHtml( $html ): void;
$html(string) (required)
the HTML to process, must be UTF-8-encoded.

AbstractHtmlProcessor::setHtml() code WC 10.5.0

private function setHtml(string $html): void
{
    $this->createUnifiedDomDocument($html);
}