Plug.HTML

Conveniences for generating HTML.

Source

Summary

html_escape(data)

Escapes the given HTML

Functions

html_escape(data)

Escapes the given HTML.

iex> Plug.HTML.html_escape("<foo>")
"<foo>"

iex> Plug.HTML.html_escape("quotes: \" & \'")
"quotes: " & '"
Source