View Source Premailex.HTMLInlineStyles (Premailex v0.3.17)
Module that processes inline styling in HMTL.
Link to this section Summary
Functions
Processes an HTML string adding inline styles.
Link to this section Functions
Link to this function
process(html_or_html_tree, css_rule_sets_or_options \\ nil, options \\ nil)
View Source@spec process( String.t() | Premailex.HTMLParser.html_tree(), [Premailex.CSSParser.rule_set()] | nil, Keyword.t() | nil ) :: String.t()
Processes an HTML string adding inline styles.
Options:
:css_selector
- the style tags to be processed for inline styling, defaults tostyle,link[rel="stylesheet"][href]
:optimize
- list or atom option for optimizing the output. The following values can be used::none
- no optimization (default):all
- apply all optimization steps:remove_style_tags
- Remove style tags (can be combined in a list)