Automattic\WooCommerce\EmailEditor\Engine\Renderer

Renderer::inline_css_stylesprivateWC 1.0

Inlines CSS styles into the HTML

Method of the class: Renderer{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->inline_css_styles( $template );
$template(string) (required)
HTML template.

Renderer::inline_css_styles() code WC 10.5.0

private function inline_css_styles( $template ) {
	return $this->css_inliner->from_html( $template )->inline_css()->render();
}