Premailex v0.3.3 Premailex.HTMLInlineStyles View Source

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, options \\ []) View Source
process(String.t(), Keyword.t()) :: String.t()

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)