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