View Source Premailex.HTMLInlineStyles (Premailex v0.3.17)

Module that processes inline styling in HMTL.

Link to this section Summary

Link to this section Functions

Link to this function

process(html_or_html_tree, css_rule_sets_or_options \\ nil, options \\ nil)

View Source

Processes an HTML string adding inline styles.

Options:

  • :css_selector - the style tags to be processed for inline styling, defaults to style,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)