Plug v1.2.2 Plug.HTML

Conveniences for generating HTML.

Summary

Functions

Escapes the given HTML

Functions

html_escape(data)

Escapes the given HTML.

iex> Plug.HTML.html_escape("<foo>")
"&lt;foo&gt;"

iex> Plug.HTML.html_escape("quotes: \" & \'")
"quotes: &quot; &amp; &#39;"