View Source Premailex.HTMLToPlainText (Premailex v0.3.17)
Module that converts HTML emails to plain text.
Link to this section Summary
Functions
Processes HTML string into a plain text string.
Link to this section Functions
@spec process(String.t() | Premailex.Util.html_tree()) :: String.t()
Processes HTML string into a plain text string.
examples
Examples
iex> Premailex.HTMLToPlainText.process("<html><body><ul><li>Test</li></ul></body></html>")
"* Test"