[][src]Struct css_inline::CSSInliner

pub struct CSSInliner<'a> { /* fields omitted */ }

Customizable CSS inliner.

Implementations

impl<'a> CSSInliner<'a>[src]

pub fn new(options: InlineOptions<'a>) -> Self[src]

Create a new CSSInliner instance with given options.

pub fn compact() -> Self[src]

Inliner, that will produce "compact" HTML. For example, "style" tags will be removed.

pub fn inline(&self, html: &str) -> Result<String, InlineError>[src]

Inline CSS styles from