Solid.HTML (solid v1.0.0-rc.0)
View SourceConveniences for generating HTML.
Summary
Functions
Escapes the given HTML to string.
iex> Plug.HTML.html_escape("foo") "foo"
iex> Plug.HTML.html_escape("<foo>") "<foo>"
iex> Plug.HTML.html_escape("quotes: \" & \'") "quotes: " & '"
Escapes the given HTML to iodata.
iex> Plug.HTML.html_escape_to_iodata("foo") "foo"
iex> Plug.HTML.html_escape_to_iodata("<foo>") [[[] | "<"], "foo" | ">"]
iex> Plug.HTML.html_escape_to_iodata("quotes: \" & \'") [[[[], "quotes: " | """], " " | "&"], " " | "'"]