Automattic\WooCommerce\EmailEditor
Email_Css_Inliner::from_html
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() Email Css Inliner::from html code WC 10.7.0
public function from_html( string $unprocessed_html ): self {
$inliner_class = $this->get_inliner_class();
$that = new self();
$that->inliner = $inliner_class::fromHtml( $unprocessed_html );
return $that;
}