Plug.HTML

Plug.HTML

Conveniences for generating HTML.

Summary

Functions

html_escape(data)

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;"

© 2013 Plataformatec
Licensed under the Apache License, Version 2.0.
登录查看完整内容