Automattic\WooCommerce\EmailEditor

Email_Css_Inliner::from_htmlpublicWC 1.0

Creates a new instance from HTML content.

Method of the class: Email_Css_Inliner{}

No Hooks.

Returns

self.

Usage

$Email_Css_Inliner = new Email_Css_Inliner();
$Email_Css_Inliner->from_html( $unprocessed_html ): self;
$unprocessed_html(string) (required)
The HTML content to process.

Email_Css_Inliner::from_html() code WC 9.9.5

public function from_html( string $unprocessed_html ): self {
	$that          = new self();
	$that->inliner = CssInliner::fromHtml( $unprocessed_html );
	return $that;
}