EmailCssInliner
in package
implements
Css_Inliner
Interfaces, Classes and Traits
Table of Contents
- $inliner : CssInliner
- from_html() : static
- Builds a new instance from the given HTML.
- inline_css() : $this
- Inlines the given CSS into the existing HTML.
- render() : string
- Renders the normalized and processed HTML.
Properties
$inliner
private
CssInliner
$inliner
Methods
from_html()
Builds a new instance from the given HTML.
public
from_html(string $unprocessed_html) : static
Parameters
- $unprocessed_html : string
-
raw HTML, must be UTF-encoded, must not be empty.
Return values
static —inline_css()
Inlines the given CSS into the existing HTML.
public
inline_css([string $css = '' ]) : $this
Parameters
- $css : string = ''
-
the CSS to inline, must be UTF-8-encoded.
Return values
$this —render()
Renders the normalized and processed HTML.
public
render() : string