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 9.9.5
public function from_html( string $unprocessed_html ): self { $that = new self(); $that->inliner = CssInliner::fromHtml( $unprocessed_html ); return $that; }