Taggart v0.1.0 Taggart.HTML View Source
HTML tags.
All elements are generated in this module. To use the macros in your module:
use Taggart.HTML
If you want more careful control over imports:
import Kernel, except: [div: 2]
import Taggart.HTML
import Taggart
Link to this section Summary
Functions
Produce a “a” tag
Produce a “abbr” tag
Produce a “address” tag
Produce a “area” tag
Produce a “article” tag
Produce a “aside” tag
Produce a “audio” tag
Produce a “b” tag
Produce a “base” tag
Produce a “bdi” tag
Produce a “bdo” tag
Produce a “blockquote” tag
Produce a “body” tag
Produce a “br” tag
Produce a “button” tag
Produce a “canvas” tag
Produce a “caption” tag
Produce a “cite” tag
Produce a “code” tag
Produce a “col” tag
Produce a “colgroup” tag
Produce a “command” tag
Produce a “content” tag
Produce a “data” tag
Produce a “datalist” tag
Produce a “dd” tag
Produce a “del” tag
Produce a “details” tag
Produce a “dfn” tag
Produce a “dialog” tag
Produce a “div” tag
Produce a “dl” tag
Produce a “dt” tag
Produce a “em” tag
Produce a “embed” tag
Produce a “fieldset” tag
Produce a “figcaption” tag
Produce a “figure” tag
Produce a “footer” tag
Produce a “form” tag
Produce a “h1” tag
Produce a “h2” tag
Produce a “h3” tag
Produce a “h4” tag
Produce a “h5” tag
Produce a “h6” tag
Produce a “head” tag
Produce a “header” tag
Produce a “hgroup” tag
Produce a “hr” tag
Produce a “html” tag
Produce a “i” tag
Produce a “iframe” tag
Produce a “img” tag
Produce a “input” tag
Produce a “ins” tag
Produce a “kbd” tag
Produce a “keygen” tag
Produce a “label” tag
Produce a “legend” tag
Produce a “li” tag
Produce a “link” tag
Produce a “main” tag
Produce a “map” tag
Produce a “mark” tag
Produce a “menu” tag
Produce a “menuitem” tag
Produce a “meta” tag
Produce a “meter” tag
Produce a “nav” tag
Produce a “noscript” tag
Produce a “object” tag
Produce a “ol” tag
Produce a “optgroup” tag
Produce a “option” tag
Produce a “output” tag
Produce a “p” tag
Produce a “param” tag
Produce a “pre” tag
Produce a “progress” tag
Produce a “q” tag
Produce a “rp” tag
Produce a “rt” tag
Produce a “ruby” tag
Produce a “s” tag
Produce a “samp” tag
Produce a “script” tag
Produce a “section” tag
Produce a “select” tag
Produce a “shadow” tag
Produce a “small” tag
Produce a “source” tag
Produce a “span” tag
Produce a “string” tag
Produce a “strong” tag
Produce a “style” tag
Produce a “sub” tag
Produce a “summary” tag
Produce a “sup” tag
Produce a “table” tag
Produce a “tbody” tag
Produce a “td” tag
Produce a “template” tag
Produce a “textarea” tag
Produce a “tfoot” tag
Produce a “th” tag
Produce a “thead” tag
Produce a “time” tag
Produce a “title” tag
Produce a “tr” tag
Produce a “track” tag
Produce a “u” tag
Produce a “ul” tag
Produce a “var” tag
Produce a “video” tag
Produce a “wbr” tag
Produce a “xmp” tag
Link to this section Functions
Produce a “a” tag.
Examples
iex> a() |> Phoenix.HTML.safe_to_string()
"<a></a>"
iex> a("content") |> Phoenix.HTML.safe_to_string()
"<a>content</a>"
iex> a("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<a class=\"foo\">content</a>"
iex> a() do end |> Phoenix.HTML.safe_to_string()
"<a></a>"
iex> a() do "content" end |> Phoenix.HTML.safe_to_string()
"<a>content</a>"
Produce a “abbr” tag.
Examples
iex> abbr() |> Phoenix.HTML.safe_to_string()
"<abbr></abbr>"
iex> abbr("content") |> Phoenix.HTML.safe_to_string()
"<abbr>content</abbr>"
iex> abbr("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<abbr class=\"foo\">content</abbr>"
iex> abbr() do end |> Phoenix.HTML.safe_to_string()
"<abbr></abbr>"
iex> abbr() do "content" end |> Phoenix.HTML.safe_to_string()
"<abbr>content</abbr>"
Produce a “address” tag.
Examples
iex> address() |> Phoenix.HTML.safe_to_string()
"<address></address>"
iex> address("content") |> Phoenix.HTML.safe_to_string()
"<address>content</address>"
iex> address("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<address class=\"foo\">content</address>"
iex> address() do end |> Phoenix.HTML.safe_to_string()
"<address></address>"
iex> address() do "content" end |> Phoenix.HTML.safe_to_string()
"<address>content</address>"
Produce a “area” tag.
Examples
iex> area() |> Phoenix.HTML.safe_to_string()
"<area></area>"
iex> area("content") |> Phoenix.HTML.safe_to_string()
"<area>content</area>"
iex> area("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<area class=\"foo\">content</area>"
iex> area() do end |> Phoenix.HTML.safe_to_string()
"<area></area>"
iex> area() do "content" end |> Phoenix.HTML.safe_to_string()
"<area>content</area>"
Produce a “article” tag.
Examples
iex> article() |> Phoenix.HTML.safe_to_string()
"<article></article>"
iex> article("content") |> Phoenix.HTML.safe_to_string()
"<article>content</article>"
iex> article("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<article class=\"foo\">content</article>"
iex> article() do end |> Phoenix.HTML.safe_to_string()
"<article></article>"
iex> article() do "content" end |> Phoenix.HTML.safe_to_string()
"<article>content</article>"
Produce a “aside” tag.
Examples
iex> aside() |> Phoenix.HTML.safe_to_string()
"<aside></aside>"
iex> aside("content") |> Phoenix.HTML.safe_to_string()
"<aside>content</aside>"
iex> aside("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<aside class=\"foo\">content</aside>"
iex> aside() do end |> Phoenix.HTML.safe_to_string()
"<aside></aside>"
iex> aside() do "content" end |> Phoenix.HTML.safe_to_string()
"<aside>content</aside>"
Produce a “audio” tag.
Examples
iex> audio() |> Phoenix.HTML.safe_to_string()
"<audio></audio>"
iex> audio("content") |> Phoenix.HTML.safe_to_string()
"<audio>content</audio>"
iex> audio("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<audio class=\"foo\">content</audio>"
iex> audio() do end |> Phoenix.HTML.safe_to_string()
"<audio></audio>"
iex> audio() do "content" end |> Phoenix.HTML.safe_to_string()
"<audio>content</audio>"
Produce a “b” tag.
Examples
iex> b() |> Phoenix.HTML.safe_to_string()
"<b></b>"
iex> b("content") |> Phoenix.HTML.safe_to_string()
"<b>content</b>"
iex> b("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<b class=\"foo\">content</b>"
iex> b() do end |> Phoenix.HTML.safe_to_string()
"<b></b>"
iex> b() do "content" end |> Phoenix.HTML.safe_to_string()
"<b>content</b>"
Produce a “base” tag.
Examples
iex> base() |> Phoenix.HTML.safe_to_string()
"<base></base>"
iex> base("content") |> Phoenix.HTML.safe_to_string()
"<base>content</base>"
iex> base("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<base class=\"foo\">content</base>"
iex> base() do end |> Phoenix.HTML.safe_to_string()
"<base></base>"
iex> base() do "content" end |> Phoenix.HTML.safe_to_string()
"<base>content</base>"
Produce a “bdi” tag.
Examples
iex> bdi() |> Phoenix.HTML.safe_to_string()
"<bdi></bdi>"
iex> bdi("content") |> Phoenix.HTML.safe_to_string()
"<bdi>content</bdi>"
iex> bdi("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<bdi class=\"foo\">content</bdi>"
iex> bdi() do end |> Phoenix.HTML.safe_to_string()
"<bdi></bdi>"
iex> bdi() do "content" end |> Phoenix.HTML.safe_to_string()
"<bdi>content</bdi>"
Produce a “bdo” tag.
Examples
iex> bdo() |> Phoenix.HTML.safe_to_string()
"<bdo></bdo>"
iex> bdo("content") |> Phoenix.HTML.safe_to_string()
"<bdo>content</bdo>"
iex> bdo("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<bdo class=\"foo\">content</bdo>"
iex> bdo() do end |> Phoenix.HTML.safe_to_string()
"<bdo></bdo>"
iex> bdo() do "content" end |> Phoenix.HTML.safe_to_string()
"<bdo>content</bdo>"
Produce a “blockquote” tag.
Examples
iex> blockquote() |> Phoenix.HTML.safe_to_string()
"<blockquote></blockquote>"
iex> blockquote("content") |> Phoenix.HTML.safe_to_string()
"<blockquote>content</blockquote>"
iex> blockquote("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<blockquote class=\"foo\">content</blockquote>"
iex> blockquote() do end |> Phoenix.HTML.safe_to_string()
"<blockquote></blockquote>"
iex> blockquote() do "content" end |> Phoenix.HTML.safe_to_string()
"<blockquote>content</blockquote>"
Produce a “body” tag.
Examples
iex> body() |> Phoenix.HTML.safe_to_string()
"<body></body>"
iex> body("content") |> Phoenix.HTML.safe_to_string()
"<body>content</body>"
iex> body("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<body class=\"foo\">content</body>"
iex> body() do end |> Phoenix.HTML.safe_to_string()
"<body></body>"
iex> body() do "content" end |> Phoenix.HTML.safe_to_string()
"<body>content</body>"
Produce a “br” tag.
Examples
iex> br() |> Phoenix.HTML.safe_to_string()
"<br></br>"
iex> br("content") |> Phoenix.HTML.safe_to_string()
"<br>content</br>"
iex> br("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<br class=\"foo\">content</br>"
iex> br() do end |> Phoenix.HTML.safe_to_string()
"<br></br>"
iex> br() do "content" end |> Phoenix.HTML.safe_to_string()
"<br>content</br>"
Produce a “button” tag.
Examples
iex> button() |> Phoenix.HTML.safe_to_string()
"<button></button>"
iex> button("content") |> Phoenix.HTML.safe_to_string()
"<button>content</button>"
iex> button("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<button class=\"foo\">content</button>"
iex> button() do end |> Phoenix.HTML.safe_to_string()
"<button></button>"
iex> button() do "content" end |> Phoenix.HTML.safe_to_string()
"<button>content</button>"
Produce a “canvas” tag.
Examples
iex> canvas() |> Phoenix.HTML.safe_to_string()
"<canvas></canvas>"
iex> canvas("content") |> Phoenix.HTML.safe_to_string()
"<canvas>content</canvas>"
iex> canvas("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<canvas class=\"foo\">content</canvas>"
iex> canvas() do end |> Phoenix.HTML.safe_to_string()
"<canvas></canvas>"
iex> canvas() do "content" end |> Phoenix.HTML.safe_to_string()
"<canvas>content</canvas>"
Produce a “caption” tag.
Examples
iex> caption() |> Phoenix.HTML.safe_to_string()
"<caption></caption>"
iex> caption("content") |> Phoenix.HTML.safe_to_string()
"<caption>content</caption>"
iex> caption("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<caption class=\"foo\">content</caption>"
iex> caption() do end |> Phoenix.HTML.safe_to_string()
"<caption></caption>"
iex> caption() do "content" end |> Phoenix.HTML.safe_to_string()
"<caption>content</caption>"
Produce a “cite” tag.
Examples
iex> cite() |> Phoenix.HTML.safe_to_string()
"<cite></cite>"
iex> cite("content") |> Phoenix.HTML.safe_to_string()
"<cite>content</cite>"
iex> cite("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<cite class=\"foo\">content</cite>"
iex> cite() do end |> Phoenix.HTML.safe_to_string()
"<cite></cite>"
iex> cite() do "content" end |> Phoenix.HTML.safe_to_string()
"<cite>content</cite>"
Produce a “code” tag.
Examples
iex> code() |> Phoenix.HTML.safe_to_string()
"<code></code>"
iex> code("content") |> Phoenix.HTML.safe_to_string()
"<code>content</code>"
iex> code("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<code class=\"foo\">content</code>"
iex> code() do end |> Phoenix.HTML.safe_to_string()
"<code></code>"
iex> code() do "content" end |> Phoenix.HTML.safe_to_string()
"<code>content</code>"
Produce a “col” tag.
Examples
iex> col() |> Phoenix.HTML.safe_to_string()
"<col></col>"
iex> col("content") |> Phoenix.HTML.safe_to_string()
"<col>content</col>"
iex> col("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<col class=\"foo\">content</col>"
iex> col() do end |> Phoenix.HTML.safe_to_string()
"<col></col>"
iex> col() do "content" end |> Phoenix.HTML.safe_to_string()
"<col>content</col>"
Produce a “colgroup” tag.
Examples
iex> colgroup() |> Phoenix.HTML.safe_to_string()
"<colgroup></colgroup>"
iex> colgroup("content") |> Phoenix.HTML.safe_to_string()
"<colgroup>content</colgroup>"
iex> colgroup("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<colgroup class=\"foo\">content</colgroup>"
iex> colgroup() do end |> Phoenix.HTML.safe_to_string()
"<colgroup></colgroup>"
iex> colgroup() do "content" end |> Phoenix.HTML.safe_to_string()
"<colgroup>content</colgroup>"
Produce a “command” tag.
Examples
iex> command() |> Phoenix.HTML.safe_to_string()
"<command></command>"
iex> command("content") |> Phoenix.HTML.safe_to_string()
"<command>content</command>"
iex> command("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<command class=\"foo\">content</command>"
iex> command() do end |> Phoenix.HTML.safe_to_string()
"<command></command>"
iex> command() do "content" end |> Phoenix.HTML.safe_to_string()
"<command>content</command>"
Produce a “content” tag.
Examples
iex> content() |> Phoenix.HTML.safe_to_string()
"<content></content>"
iex> content("content") |> Phoenix.HTML.safe_to_string()
"<content>content</content>"
iex> content("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<content class=\"foo\">content</content>"
iex> content() do end |> Phoenix.HTML.safe_to_string()
"<content></content>"
iex> content() do "content" end |> Phoenix.HTML.safe_to_string()
"<content>content</content>"
Produce a “data” tag.
Examples
iex> data() |> Phoenix.HTML.safe_to_string()
"<data></data>"
iex> data("content") |> Phoenix.HTML.safe_to_string()
"<data>content</data>"
iex> data("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<data class=\"foo\">content</data>"
iex> data() do end |> Phoenix.HTML.safe_to_string()
"<data></data>"
iex> data() do "content" end |> Phoenix.HTML.safe_to_string()
"<data>content</data>"
Produce a “datalist” tag.
Examples
iex> datalist() |> Phoenix.HTML.safe_to_string()
"<datalist></datalist>"
iex> datalist("content") |> Phoenix.HTML.safe_to_string()
"<datalist>content</datalist>"
iex> datalist("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<datalist class=\"foo\">content</datalist>"
iex> datalist() do end |> Phoenix.HTML.safe_to_string()
"<datalist></datalist>"
iex> datalist() do "content" end |> Phoenix.HTML.safe_to_string()
"<datalist>content</datalist>"
Produce a “dd” tag.
Examples
iex> dd() |> Phoenix.HTML.safe_to_string()
"<dd></dd>"
iex> dd("content") |> Phoenix.HTML.safe_to_string()
"<dd>content</dd>"
iex> dd("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<dd class=\"foo\">content</dd>"
iex> dd() do end |> Phoenix.HTML.safe_to_string()
"<dd></dd>"
iex> dd() do "content" end |> Phoenix.HTML.safe_to_string()
"<dd>content</dd>"
Produce a “del” tag.
Examples
iex> del() |> Phoenix.HTML.safe_to_string()
"<del></del>"
iex> del("content") |> Phoenix.HTML.safe_to_string()
"<del>content</del>"
iex> del("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<del class=\"foo\">content</del>"
iex> del() do end |> Phoenix.HTML.safe_to_string()
"<del></del>"
iex> del() do "content" end |> Phoenix.HTML.safe_to_string()
"<del>content</del>"
Produce a “details” tag.
Examples
iex> details() |> Phoenix.HTML.safe_to_string()
"<details></details>"
iex> details("content") |> Phoenix.HTML.safe_to_string()
"<details>content</details>"
iex> details("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<details class=\"foo\">content</details>"
iex> details() do end |> Phoenix.HTML.safe_to_string()
"<details></details>"
iex> details() do "content" end |> Phoenix.HTML.safe_to_string()
"<details>content</details>"
Produce a “dfn” tag.
Examples
iex> dfn() |> Phoenix.HTML.safe_to_string()
"<dfn></dfn>"
iex> dfn("content") |> Phoenix.HTML.safe_to_string()
"<dfn>content</dfn>"
iex> dfn("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<dfn class=\"foo\">content</dfn>"
iex> dfn() do end |> Phoenix.HTML.safe_to_string()
"<dfn></dfn>"
iex> dfn() do "content" end |> Phoenix.HTML.safe_to_string()
"<dfn>content</dfn>"
Produce a “dialog” tag.
Examples
iex> dialog() |> Phoenix.HTML.safe_to_string()
"<dialog></dialog>"
iex> dialog("content") |> Phoenix.HTML.safe_to_string()
"<dialog>content</dialog>"
iex> dialog("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<dialog class=\"foo\">content</dialog>"
iex> dialog() do end |> Phoenix.HTML.safe_to_string()
"<dialog></dialog>"
iex> dialog() do "content" end |> Phoenix.HTML.safe_to_string()
"<dialog>content</dialog>"
Produce a “div” tag.
Examples
iex> div() |> Phoenix.HTML.safe_to_string()
"<div></div>"
iex> div("content") |> Phoenix.HTML.safe_to_string()
"<div>content</div>"
iex> div("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<div class=\"foo\">content</div>"
iex> div() do end |> Phoenix.HTML.safe_to_string()
"<div></div>"
iex> div() do "content" end |> Phoenix.HTML.safe_to_string()
"<div>content</div>"
Produce a “dl” tag.
Examples
iex> dl() |> Phoenix.HTML.safe_to_string()
"<dl></dl>"
iex> dl("content") |> Phoenix.HTML.safe_to_string()
"<dl>content</dl>"
iex> dl("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<dl class=\"foo\">content</dl>"
iex> dl() do end |> Phoenix.HTML.safe_to_string()
"<dl></dl>"
iex> dl() do "content" end |> Phoenix.HTML.safe_to_string()
"<dl>content</dl>"
Produce a “dt” tag.
Examples
iex> dt() |> Phoenix.HTML.safe_to_string()
"<dt></dt>"
iex> dt("content") |> Phoenix.HTML.safe_to_string()
"<dt>content</dt>"
iex> dt("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<dt class=\"foo\">content</dt>"
iex> dt() do end |> Phoenix.HTML.safe_to_string()
"<dt></dt>"
iex> dt() do "content" end |> Phoenix.HTML.safe_to_string()
"<dt>content</dt>"
Produce a “em” tag.
Examples
iex> em() |> Phoenix.HTML.safe_to_string()
"<em></em>"
iex> em("content") |> Phoenix.HTML.safe_to_string()
"<em>content</em>"
iex> em("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<em class=\"foo\">content</em>"
iex> em() do end |> Phoenix.HTML.safe_to_string()
"<em></em>"
iex> em() do "content" end |> Phoenix.HTML.safe_to_string()
"<em>content</em>"
Produce a “embed” tag.
Examples
iex> embed() |> Phoenix.HTML.safe_to_string()
"<embed></embed>"
iex> embed("content") |> Phoenix.HTML.safe_to_string()
"<embed>content</embed>"
iex> embed("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<embed class=\"foo\">content</embed>"
iex> embed() do end |> Phoenix.HTML.safe_to_string()
"<embed></embed>"
iex> embed() do "content" end |> Phoenix.HTML.safe_to_string()
"<embed>content</embed>"
Produce a “fieldset” tag.
Examples
iex> fieldset() |> Phoenix.HTML.safe_to_string()
"<fieldset></fieldset>"
iex> fieldset("content") |> Phoenix.HTML.safe_to_string()
"<fieldset>content</fieldset>"
iex> fieldset("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<fieldset class=\"foo\">content</fieldset>"
iex> fieldset() do end |> Phoenix.HTML.safe_to_string()
"<fieldset></fieldset>"
iex> fieldset() do "content" end |> Phoenix.HTML.safe_to_string()
"<fieldset>content</fieldset>"
Produce a “figcaption” tag.
Examples
iex> figcaption() |> Phoenix.HTML.safe_to_string()
"<figcaption></figcaption>"
iex> figcaption("content") |> Phoenix.HTML.safe_to_string()
"<figcaption>content</figcaption>"
iex> figcaption("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<figcaption class=\"foo\">content</figcaption>"
iex> figcaption() do end |> Phoenix.HTML.safe_to_string()
"<figcaption></figcaption>"
iex> figcaption() do "content" end |> Phoenix.HTML.safe_to_string()
"<figcaption>content</figcaption>"
Produce a “figure” tag.
Examples
iex> figure() |> Phoenix.HTML.safe_to_string()
"<figure></figure>"
iex> figure("content") |> Phoenix.HTML.safe_to_string()
"<figure>content</figure>"
iex> figure("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<figure class=\"foo\">content</figure>"
iex> figure() do end |> Phoenix.HTML.safe_to_string()
"<figure></figure>"
iex> figure() do "content" end |> Phoenix.HTML.safe_to_string()
"<figure>content</figure>"
Produce a “form” tag.
Examples
iex> form() |> Phoenix.HTML.safe_to_string()
"<form></form>"
iex> form("content") |> Phoenix.HTML.safe_to_string()
"<form>content</form>"
iex> form("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<form class=\"foo\">content</form>"
iex> form() do end |> Phoenix.HTML.safe_to_string()
"<form></form>"
iex> form() do "content" end |> Phoenix.HTML.safe_to_string()
"<form>content</form>"
Produce a “h1” tag.
Examples
iex> h1() |> Phoenix.HTML.safe_to_string()
"<h1></h1>"
iex> h1("content") |> Phoenix.HTML.safe_to_string()
"<h1>content</h1>"
iex> h1("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<h1 class=\"foo\">content</h1>"
iex> h1() do end |> Phoenix.HTML.safe_to_string()
"<h1></h1>"
iex> h1() do "content" end |> Phoenix.HTML.safe_to_string()
"<h1>content</h1>"
Produce a “h2” tag.
Examples
iex> h2() |> Phoenix.HTML.safe_to_string()
"<h2></h2>"
iex> h2("content") |> Phoenix.HTML.safe_to_string()
"<h2>content</h2>"
iex> h2("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<h2 class=\"foo\">content</h2>"
iex> h2() do end |> Phoenix.HTML.safe_to_string()
"<h2></h2>"
iex> h2() do "content" end |> Phoenix.HTML.safe_to_string()
"<h2>content</h2>"
Produce a “h3” tag.
Examples
iex> h3() |> Phoenix.HTML.safe_to_string()
"<h3></h3>"
iex> h3("content") |> Phoenix.HTML.safe_to_string()
"<h3>content</h3>"
iex> h3("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<h3 class=\"foo\">content</h3>"
iex> h3() do end |> Phoenix.HTML.safe_to_string()
"<h3></h3>"
iex> h3() do "content" end |> Phoenix.HTML.safe_to_string()
"<h3>content</h3>"
Produce a “h4” tag.
Examples
iex> h4() |> Phoenix.HTML.safe_to_string()
"<h4></h4>"
iex> h4("content") |> Phoenix.HTML.safe_to_string()
"<h4>content</h4>"
iex> h4("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<h4 class=\"foo\">content</h4>"
iex> h4() do end |> Phoenix.HTML.safe_to_string()
"<h4></h4>"
iex> h4() do "content" end |> Phoenix.HTML.safe_to_string()
"<h4>content</h4>"
Produce a “h5” tag.
Examples
iex> h5() |> Phoenix.HTML.safe_to_string()
"<h5></h5>"
iex> h5("content") |> Phoenix.HTML.safe_to_string()
"<h5>content</h5>"
iex> h5("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<h5 class=\"foo\">content</h5>"
iex> h5() do end |> Phoenix.HTML.safe_to_string()
"<h5></h5>"
iex> h5() do "content" end |> Phoenix.HTML.safe_to_string()
"<h5>content</h5>"
Produce a “h6” tag.
Examples
iex> h6() |> Phoenix.HTML.safe_to_string()
"<h6></h6>"
iex> h6("content") |> Phoenix.HTML.safe_to_string()
"<h6>content</h6>"
iex> h6("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<h6 class=\"foo\">content</h6>"
iex> h6() do end |> Phoenix.HTML.safe_to_string()
"<h6></h6>"
iex> h6() do "content" end |> Phoenix.HTML.safe_to_string()
"<h6>content</h6>"
Produce a “head” tag.
Examples
iex> head() |> Phoenix.HTML.safe_to_string()
"<head></head>"
iex> head("content") |> Phoenix.HTML.safe_to_string()
"<head>content</head>"
iex> head("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<head class=\"foo\">content</head>"
iex> head() do end |> Phoenix.HTML.safe_to_string()
"<head></head>"
iex> head() do "content" end |> Phoenix.HTML.safe_to_string()
"<head>content</head>"
Produce a “header” tag.
Examples
iex> header() |> Phoenix.HTML.safe_to_string()
"<header></header>"
iex> header("content") |> Phoenix.HTML.safe_to_string()
"<header>content</header>"
iex> header("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<header class=\"foo\">content</header>"
iex> header() do end |> Phoenix.HTML.safe_to_string()
"<header></header>"
iex> header() do "content" end |> Phoenix.HTML.safe_to_string()
"<header>content</header>"
Produce a “hgroup” tag.
Examples
iex> hgroup() |> Phoenix.HTML.safe_to_string()
"<hgroup></hgroup>"
iex> hgroup("content") |> Phoenix.HTML.safe_to_string()
"<hgroup>content</hgroup>"
iex> hgroup("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<hgroup class=\"foo\">content</hgroup>"
iex> hgroup() do end |> Phoenix.HTML.safe_to_string()
"<hgroup></hgroup>"
iex> hgroup() do "content" end |> Phoenix.HTML.safe_to_string()
"<hgroup>content</hgroup>"
Produce a “hr” tag.
Examples
iex> hr() |> Phoenix.HTML.safe_to_string()
"<hr></hr>"
iex> hr("content") |> Phoenix.HTML.safe_to_string()
"<hr>content</hr>"
iex> hr("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<hr class=\"foo\">content</hr>"
iex> hr() do end |> Phoenix.HTML.safe_to_string()
"<hr></hr>"
iex> hr() do "content" end |> Phoenix.HTML.safe_to_string()
"<hr>content</hr>"
Produce a “html” tag.
Examples
iex> html() |> Phoenix.HTML.safe_to_string()
"<html></html>"
iex> html("content") |> Phoenix.HTML.safe_to_string()
"<html>content</html>"
iex> html("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<html class=\"foo\">content</html>"
iex> html() do end |> Phoenix.HTML.safe_to_string()
"<html></html>"
iex> html() do "content" end |> Phoenix.HTML.safe_to_string()
"<html>content</html>"
Produce a “i” tag.
Examples
iex> i() |> Phoenix.HTML.safe_to_string()
"<i></i>"
iex> i("content") |> Phoenix.HTML.safe_to_string()
"<i>content</i>"
iex> i("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<i class=\"foo\">content</i>"
iex> i() do end |> Phoenix.HTML.safe_to_string()
"<i></i>"
iex> i() do "content" end |> Phoenix.HTML.safe_to_string()
"<i>content</i>"
Produce a “iframe” tag.
Examples
iex> iframe() |> Phoenix.HTML.safe_to_string()
"<iframe></iframe>"
iex> iframe("content") |> Phoenix.HTML.safe_to_string()
"<iframe>content</iframe>"
iex> iframe("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<iframe class=\"foo\">content</iframe>"
iex> iframe() do end |> Phoenix.HTML.safe_to_string()
"<iframe></iframe>"
iex> iframe() do "content" end |> Phoenix.HTML.safe_to_string()
"<iframe>content</iframe>"
Produce a “img” tag.
Examples
iex> img() |> Phoenix.HTML.safe_to_string()
"<img></img>"
iex> img("content") |> Phoenix.HTML.safe_to_string()
"<img>content</img>"
iex> img("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<img class=\"foo\">content</img>"
iex> img() do end |> Phoenix.HTML.safe_to_string()
"<img></img>"
iex> img() do "content" end |> Phoenix.HTML.safe_to_string()
"<img>content</img>"
Produce a “input” tag.
Examples
iex> input() |> Phoenix.HTML.safe_to_string()
"<input></input>"
iex> input("content") |> Phoenix.HTML.safe_to_string()
"<input>content</input>"
iex> input("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<input class=\"foo\">content</input>"
iex> input() do end |> Phoenix.HTML.safe_to_string()
"<input></input>"
iex> input() do "content" end |> Phoenix.HTML.safe_to_string()
"<input>content</input>"
Produce a “ins” tag.
Examples
iex> ins() |> Phoenix.HTML.safe_to_string()
"<ins></ins>"
iex> ins("content") |> Phoenix.HTML.safe_to_string()
"<ins>content</ins>"
iex> ins("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<ins class=\"foo\">content</ins>"
iex> ins() do end |> Phoenix.HTML.safe_to_string()
"<ins></ins>"
iex> ins() do "content" end |> Phoenix.HTML.safe_to_string()
"<ins>content</ins>"
Produce a “kbd” tag.
Examples
iex> kbd() |> Phoenix.HTML.safe_to_string()
"<kbd></kbd>"
iex> kbd("content") |> Phoenix.HTML.safe_to_string()
"<kbd>content</kbd>"
iex> kbd("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<kbd class=\"foo\">content</kbd>"
iex> kbd() do end |> Phoenix.HTML.safe_to_string()
"<kbd></kbd>"
iex> kbd() do "content" end |> Phoenix.HTML.safe_to_string()
"<kbd>content</kbd>"
Produce a “keygen” tag.
Examples
iex> keygen() |> Phoenix.HTML.safe_to_string()
"<keygen></keygen>"
iex> keygen("content") |> Phoenix.HTML.safe_to_string()
"<keygen>content</keygen>"
iex> keygen("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<keygen class=\"foo\">content</keygen>"
iex> keygen() do end |> Phoenix.HTML.safe_to_string()
"<keygen></keygen>"
iex> keygen() do "content" end |> Phoenix.HTML.safe_to_string()
"<keygen>content</keygen>"
Produce a “label” tag.
Examples
iex> label() |> Phoenix.HTML.safe_to_string()
"<label></label>"
iex> label("content") |> Phoenix.HTML.safe_to_string()
"<label>content</label>"
iex> label("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<label class=\"foo\">content</label>"
iex> label() do end |> Phoenix.HTML.safe_to_string()
"<label></label>"
iex> label() do "content" end |> Phoenix.HTML.safe_to_string()
"<label>content</label>"
Produce a “legend” tag.
Examples
iex> legend() |> Phoenix.HTML.safe_to_string()
"<legend></legend>"
iex> legend("content") |> Phoenix.HTML.safe_to_string()
"<legend>content</legend>"
iex> legend("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<legend class=\"foo\">content</legend>"
iex> legend() do end |> Phoenix.HTML.safe_to_string()
"<legend></legend>"
iex> legend() do "content" end |> Phoenix.HTML.safe_to_string()
"<legend>content</legend>"
Produce a “li” tag.
Examples
iex> li() |> Phoenix.HTML.safe_to_string()
"<li></li>"
iex> li("content") |> Phoenix.HTML.safe_to_string()
"<li>content</li>"
iex> li("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<li class=\"foo\">content</li>"
iex> li() do end |> Phoenix.HTML.safe_to_string()
"<li></li>"
iex> li() do "content" end |> Phoenix.HTML.safe_to_string()
"<li>content</li>"
Produce a “link” tag.
Examples
iex> link() |> Phoenix.HTML.safe_to_string()
"<link></link>"
iex> link("content") |> Phoenix.HTML.safe_to_string()
"<link>content</link>"
iex> link("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<link class=\"foo\">content</link>"
iex> link() do end |> Phoenix.HTML.safe_to_string()
"<link></link>"
iex> link() do "content" end |> Phoenix.HTML.safe_to_string()
"<link>content</link>"
Produce a “main” tag.
Examples
iex> main() |> Phoenix.HTML.safe_to_string()
"<main></main>"
iex> main("content") |> Phoenix.HTML.safe_to_string()
"<main>content</main>"
iex> main("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<main class=\"foo\">content</main>"
iex> main() do end |> Phoenix.HTML.safe_to_string()
"<main></main>"
iex> main() do "content" end |> Phoenix.HTML.safe_to_string()
"<main>content</main>"
Produce a “map” tag.
Examples
iex> map() |> Phoenix.HTML.safe_to_string()
"<map></map>"
iex> map("content") |> Phoenix.HTML.safe_to_string()
"<map>content</map>"
iex> map("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<map class=\"foo\">content</map>"
iex> map() do end |> Phoenix.HTML.safe_to_string()
"<map></map>"
iex> map() do "content" end |> Phoenix.HTML.safe_to_string()
"<map>content</map>"
Produce a “mark” tag.
Examples
iex> mark() |> Phoenix.HTML.safe_to_string()
"<mark></mark>"
iex> mark("content") |> Phoenix.HTML.safe_to_string()
"<mark>content</mark>"
iex> mark("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<mark class=\"foo\">content</mark>"
iex> mark() do end |> Phoenix.HTML.safe_to_string()
"<mark></mark>"
iex> mark() do "content" end |> Phoenix.HTML.safe_to_string()
"<mark>content</mark>"
Produce a “meta” tag.
Examples
iex> meta() |> Phoenix.HTML.safe_to_string()
"<meta></meta>"
iex> meta("content") |> Phoenix.HTML.safe_to_string()
"<meta>content</meta>"
iex> meta("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<meta class=\"foo\">content</meta>"
iex> meta() do end |> Phoenix.HTML.safe_to_string()
"<meta></meta>"
iex> meta() do "content" end |> Phoenix.HTML.safe_to_string()
"<meta>content</meta>"
Produce a “meter” tag.
Examples
iex> meter() |> Phoenix.HTML.safe_to_string()
"<meter></meter>"
iex> meter("content") |> Phoenix.HTML.safe_to_string()
"<meter>content</meter>"
iex> meter("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<meter class=\"foo\">content</meter>"
iex> meter() do end |> Phoenix.HTML.safe_to_string()
"<meter></meter>"
iex> meter() do "content" end |> Phoenix.HTML.safe_to_string()
"<meter>content</meter>"
Produce a “noscript” tag.
Examples
iex> noscript() |> Phoenix.HTML.safe_to_string()
"<noscript></noscript>"
iex> noscript("content") |> Phoenix.HTML.safe_to_string()
"<noscript>content</noscript>"
iex> noscript("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<noscript class=\"foo\">content</noscript>"
iex> noscript() do end |> Phoenix.HTML.safe_to_string()
"<noscript></noscript>"
iex> noscript() do "content" end |> Phoenix.HTML.safe_to_string()
"<noscript>content</noscript>"
Produce a “object” tag.
Examples
iex> object() |> Phoenix.HTML.safe_to_string()
"<object></object>"
iex> object("content") |> Phoenix.HTML.safe_to_string()
"<object>content</object>"
iex> object("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<object class=\"foo\">content</object>"
iex> object() do end |> Phoenix.HTML.safe_to_string()
"<object></object>"
iex> object() do "content" end |> Phoenix.HTML.safe_to_string()
"<object>content</object>"
Produce a “ol” tag.
Examples
iex> ol() |> Phoenix.HTML.safe_to_string()
"<ol></ol>"
iex> ol("content") |> Phoenix.HTML.safe_to_string()
"<ol>content</ol>"
iex> ol("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<ol class=\"foo\">content</ol>"
iex> ol() do end |> Phoenix.HTML.safe_to_string()
"<ol></ol>"
iex> ol() do "content" end |> Phoenix.HTML.safe_to_string()
"<ol>content</ol>"
Produce a “optgroup” tag.
Examples
iex> optgroup() |> Phoenix.HTML.safe_to_string()
"<optgroup></optgroup>"
iex> optgroup("content") |> Phoenix.HTML.safe_to_string()
"<optgroup>content</optgroup>"
iex> optgroup("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<optgroup class=\"foo\">content</optgroup>"
iex> optgroup() do end |> Phoenix.HTML.safe_to_string()
"<optgroup></optgroup>"
iex> optgroup() do "content" end |> Phoenix.HTML.safe_to_string()
"<optgroup>content</optgroup>"
Produce a “option” tag.
Examples
iex> option() |> Phoenix.HTML.safe_to_string()
"<option></option>"
iex> option("content") |> Phoenix.HTML.safe_to_string()
"<option>content</option>"
iex> option("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<option class=\"foo\">content</option>"
iex> option() do end |> Phoenix.HTML.safe_to_string()
"<option></option>"
iex> option() do "content" end |> Phoenix.HTML.safe_to_string()
"<option>content</option>"
Produce a “output” tag.
Examples
iex> output() |> Phoenix.HTML.safe_to_string()
"<output></output>"
iex> output("content") |> Phoenix.HTML.safe_to_string()
"<output>content</output>"
iex> output("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<output class=\"foo\">content</output>"
iex> output() do end |> Phoenix.HTML.safe_to_string()
"<output></output>"
iex> output() do "content" end |> Phoenix.HTML.safe_to_string()
"<output>content</output>"
Produce a “p” tag.
Examples
iex> p() |> Phoenix.HTML.safe_to_string()
"<p></p>"
iex> p("content") |> Phoenix.HTML.safe_to_string()
"<p>content</p>"
iex> p("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<p class=\"foo\">content</p>"
iex> p() do end |> Phoenix.HTML.safe_to_string()
"<p></p>"
iex> p() do "content" end |> Phoenix.HTML.safe_to_string()
"<p>content</p>"
Produce a “param” tag.
Examples
iex> param() |> Phoenix.HTML.safe_to_string()
"<param></param>"
iex> param("content") |> Phoenix.HTML.safe_to_string()
"<param>content</param>"
iex> param("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<param class=\"foo\">content</param>"
iex> param() do end |> Phoenix.HTML.safe_to_string()
"<param></param>"
iex> param() do "content" end |> Phoenix.HTML.safe_to_string()
"<param>content</param>"
Produce a “pre” tag.
Examples
iex> pre() |> Phoenix.HTML.safe_to_string()
"<pre></pre>"
iex> pre("content") |> Phoenix.HTML.safe_to_string()
"<pre>content</pre>"
iex> pre("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<pre class=\"foo\">content</pre>"
iex> pre() do end |> Phoenix.HTML.safe_to_string()
"<pre></pre>"
iex> pre() do "content" end |> Phoenix.HTML.safe_to_string()
"<pre>content</pre>"
Produce a “progress” tag.
Examples
iex> progress() |> Phoenix.HTML.safe_to_string()
"<progress></progress>"
iex> progress("content") |> Phoenix.HTML.safe_to_string()
"<progress>content</progress>"
iex> progress("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<progress class=\"foo\">content</progress>"
iex> progress() do end |> Phoenix.HTML.safe_to_string()
"<progress></progress>"
iex> progress() do "content" end |> Phoenix.HTML.safe_to_string()
"<progress>content</progress>"
Produce a “q” tag.
Examples
iex> q() |> Phoenix.HTML.safe_to_string()
"<q></q>"
iex> q("content") |> Phoenix.HTML.safe_to_string()
"<q>content</q>"
iex> q("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<q class=\"foo\">content</q>"
iex> q() do end |> Phoenix.HTML.safe_to_string()
"<q></q>"
iex> q() do "content" end |> Phoenix.HTML.safe_to_string()
"<q>content</q>"
Produce a “rp” tag.
Examples
iex> rp() |> Phoenix.HTML.safe_to_string()
"<rp></rp>"
iex> rp("content") |> Phoenix.HTML.safe_to_string()
"<rp>content</rp>"
iex> rp("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<rp class=\"foo\">content</rp>"
iex> rp() do end |> Phoenix.HTML.safe_to_string()
"<rp></rp>"
iex> rp() do "content" end |> Phoenix.HTML.safe_to_string()
"<rp>content</rp>"
Produce a “rt” tag.
Examples
iex> rt() |> Phoenix.HTML.safe_to_string()
"<rt></rt>"
iex> rt("content") |> Phoenix.HTML.safe_to_string()
"<rt>content</rt>"
iex> rt("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<rt class=\"foo\">content</rt>"
iex> rt() do end |> Phoenix.HTML.safe_to_string()
"<rt></rt>"
iex> rt() do "content" end |> Phoenix.HTML.safe_to_string()
"<rt>content</rt>"
Produce a “ruby” tag.
Examples
iex> ruby() |> Phoenix.HTML.safe_to_string()
"<ruby></ruby>"
iex> ruby("content") |> Phoenix.HTML.safe_to_string()
"<ruby>content</ruby>"
iex> ruby("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<ruby class=\"foo\">content</ruby>"
iex> ruby() do end |> Phoenix.HTML.safe_to_string()
"<ruby></ruby>"
iex> ruby() do "content" end |> Phoenix.HTML.safe_to_string()
"<ruby>content</ruby>"
Produce a “s” tag.
Examples
iex> s() |> Phoenix.HTML.safe_to_string()
"<s></s>"
iex> s("content") |> Phoenix.HTML.safe_to_string()
"<s>content</s>"
iex> s("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<s class=\"foo\">content</s>"
iex> s() do end |> Phoenix.HTML.safe_to_string()
"<s></s>"
iex> s() do "content" end |> Phoenix.HTML.safe_to_string()
"<s>content</s>"
Produce a “samp” tag.
Examples
iex> samp() |> Phoenix.HTML.safe_to_string()
"<samp></samp>"
iex> samp("content") |> Phoenix.HTML.safe_to_string()
"<samp>content</samp>"
iex> samp("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<samp class=\"foo\">content</samp>"
iex> samp() do end |> Phoenix.HTML.safe_to_string()
"<samp></samp>"
iex> samp() do "content" end |> Phoenix.HTML.safe_to_string()
"<samp>content</samp>"
Produce a “script” tag.
Examples
iex> script() |> Phoenix.HTML.safe_to_string()
"<script></script>"
iex> script("content") |> Phoenix.HTML.safe_to_string()
"<script>content</script>"
iex> script("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<script class=\"foo\">content</script>"
iex> script() do end |> Phoenix.HTML.safe_to_string()
"<script></script>"
iex> script() do "content" end |> Phoenix.HTML.safe_to_string()
"<script>content</script>"
Produce a “section” tag.
Examples
iex> section() |> Phoenix.HTML.safe_to_string()
"<section></section>"
iex> section("content") |> Phoenix.HTML.safe_to_string()
"<section>content</section>"
iex> section("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<section class=\"foo\">content</section>"
iex> section() do end |> Phoenix.HTML.safe_to_string()
"<section></section>"
iex> section() do "content" end |> Phoenix.HTML.safe_to_string()
"<section>content</section>"
Produce a “select” tag.
Examples
iex> select() |> Phoenix.HTML.safe_to_string()
"<select></select>"
iex> select("content") |> Phoenix.HTML.safe_to_string()
"<select>content</select>"
iex> select("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<select class=\"foo\">content</select>"
iex> select() do end |> Phoenix.HTML.safe_to_string()
"<select></select>"
iex> select() do "content" end |> Phoenix.HTML.safe_to_string()
"<select>content</select>"
Produce a “shadow” tag.
Examples
iex> shadow() |> Phoenix.HTML.safe_to_string()
"<shadow></shadow>"
iex> shadow("content") |> Phoenix.HTML.safe_to_string()
"<shadow>content</shadow>"
iex> shadow("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<shadow class=\"foo\">content</shadow>"
iex> shadow() do end |> Phoenix.HTML.safe_to_string()
"<shadow></shadow>"
iex> shadow() do "content" end |> Phoenix.HTML.safe_to_string()
"<shadow>content</shadow>"
Produce a “small” tag.
Examples
iex> small() |> Phoenix.HTML.safe_to_string()
"<small></small>"
iex> small("content") |> Phoenix.HTML.safe_to_string()
"<small>content</small>"
iex> small("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<small class=\"foo\">content</small>"
iex> small() do end |> Phoenix.HTML.safe_to_string()
"<small></small>"
iex> small() do "content" end |> Phoenix.HTML.safe_to_string()
"<small>content</small>"
Produce a “source” tag.
Examples
iex> source() |> Phoenix.HTML.safe_to_string()
"<source></source>"
iex> source("content") |> Phoenix.HTML.safe_to_string()
"<source>content</source>"
iex> source("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<source class=\"foo\">content</source>"
iex> source() do end |> Phoenix.HTML.safe_to_string()
"<source></source>"
iex> source() do "content" end |> Phoenix.HTML.safe_to_string()
"<source>content</source>"
Produce a “span” tag.
Examples
iex> span() |> Phoenix.HTML.safe_to_string()
"<span></span>"
iex> span("content") |> Phoenix.HTML.safe_to_string()
"<span>content</span>"
iex> span("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<span class=\"foo\">content</span>"
iex> span() do end |> Phoenix.HTML.safe_to_string()
"<span></span>"
iex> span() do "content" end |> Phoenix.HTML.safe_to_string()
"<span>content</span>"
Produce a “string” tag.
Examples
iex> string() |> Phoenix.HTML.safe_to_string()
"<string></string>"
iex> string("content") |> Phoenix.HTML.safe_to_string()
"<string>content</string>"
iex> string("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<string class=\"foo\">content</string>"
iex> string() do end |> Phoenix.HTML.safe_to_string()
"<string></string>"
iex> string() do "content" end |> Phoenix.HTML.safe_to_string()
"<string>content</string>"
Produce a “strong” tag.
Examples
iex> strong() |> Phoenix.HTML.safe_to_string()
"<strong></strong>"
iex> strong("content") |> Phoenix.HTML.safe_to_string()
"<strong>content</strong>"
iex> strong("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<strong class=\"foo\">content</strong>"
iex> strong() do end |> Phoenix.HTML.safe_to_string()
"<strong></strong>"
iex> strong() do "content" end |> Phoenix.HTML.safe_to_string()
"<strong>content</strong>"
Produce a “style” tag.
Examples
iex> style() |> Phoenix.HTML.safe_to_string()
"<style></style>"
iex> style("content") |> Phoenix.HTML.safe_to_string()
"<style>content</style>"
iex> style("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<style class=\"foo\">content</style>"
iex> style() do end |> Phoenix.HTML.safe_to_string()
"<style></style>"
iex> style() do "content" end |> Phoenix.HTML.safe_to_string()
"<style>content</style>"
Produce a “sub” tag.
Examples
iex> sub() |> Phoenix.HTML.safe_to_string()
"<sub></sub>"
iex> sub("content") |> Phoenix.HTML.safe_to_string()
"<sub>content</sub>"
iex> sub("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<sub class=\"foo\">content</sub>"
iex> sub() do end |> Phoenix.HTML.safe_to_string()
"<sub></sub>"
iex> sub() do "content" end |> Phoenix.HTML.safe_to_string()
"<sub>content</sub>"
Produce a “summary” tag.
Examples
iex> summary() |> Phoenix.HTML.safe_to_string()
"<summary></summary>"
iex> summary("content") |> Phoenix.HTML.safe_to_string()
"<summary>content</summary>"
iex> summary("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<summary class=\"foo\">content</summary>"
iex> summary() do end |> Phoenix.HTML.safe_to_string()
"<summary></summary>"
iex> summary() do "content" end |> Phoenix.HTML.safe_to_string()
"<summary>content</summary>"
Produce a “sup” tag.
Examples
iex> sup() |> Phoenix.HTML.safe_to_string()
"<sup></sup>"
iex> sup("content") |> Phoenix.HTML.safe_to_string()
"<sup>content</sup>"
iex> sup("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<sup class=\"foo\">content</sup>"
iex> sup() do end |> Phoenix.HTML.safe_to_string()
"<sup></sup>"
iex> sup() do "content" end |> Phoenix.HTML.safe_to_string()
"<sup>content</sup>"
Produce a “table” tag.
Examples
iex> table() |> Phoenix.HTML.safe_to_string()
"<table></table>"
iex> table("content") |> Phoenix.HTML.safe_to_string()
"<table>content</table>"
iex> table("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<table class=\"foo\">content</table>"
iex> table() do end |> Phoenix.HTML.safe_to_string()
"<table></table>"
iex> table() do "content" end |> Phoenix.HTML.safe_to_string()
"<table>content</table>"
Produce a “tbody” tag.
Examples
iex> tbody() |> Phoenix.HTML.safe_to_string()
"<tbody></tbody>"
iex> tbody("content") |> Phoenix.HTML.safe_to_string()
"<tbody>content</tbody>"
iex> tbody("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<tbody class=\"foo\">content</tbody>"
iex> tbody() do end |> Phoenix.HTML.safe_to_string()
"<tbody></tbody>"
iex> tbody() do "content" end |> Phoenix.HTML.safe_to_string()
"<tbody>content</tbody>"
Produce a “td” tag.
Examples
iex> td() |> Phoenix.HTML.safe_to_string()
"<td></td>"
iex> td("content") |> Phoenix.HTML.safe_to_string()
"<td>content</td>"
iex> td("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<td class=\"foo\">content</td>"
iex> td() do end |> Phoenix.HTML.safe_to_string()
"<td></td>"
iex> td() do "content" end |> Phoenix.HTML.safe_to_string()
"<td>content</td>"
Produce a “template” tag.
Examples
iex> template() |> Phoenix.HTML.safe_to_string()
"<template></template>"
iex> template("content") |> Phoenix.HTML.safe_to_string()
"<template>content</template>"
iex> template("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<template class=\"foo\">content</template>"
iex> template() do end |> Phoenix.HTML.safe_to_string()
"<template></template>"
iex> template() do "content" end |> Phoenix.HTML.safe_to_string()
"<template>content</template>"
Produce a “textarea” tag.
Examples
iex> textarea() |> Phoenix.HTML.safe_to_string()
"<textarea></textarea>"
iex> textarea("content") |> Phoenix.HTML.safe_to_string()
"<textarea>content</textarea>"
iex> textarea("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<textarea class=\"foo\">content</textarea>"
iex> textarea() do end |> Phoenix.HTML.safe_to_string()
"<textarea></textarea>"
iex> textarea() do "content" end |> Phoenix.HTML.safe_to_string()
"<textarea>content</textarea>"
Produce a “tfoot” tag.
Examples
iex> tfoot() |> Phoenix.HTML.safe_to_string()
"<tfoot></tfoot>"
iex> tfoot("content") |> Phoenix.HTML.safe_to_string()
"<tfoot>content</tfoot>"
iex> tfoot("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<tfoot class=\"foo\">content</tfoot>"
iex> tfoot() do end |> Phoenix.HTML.safe_to_string()
"<tfoot></tfoot>"
iex> tfoot() do "content" end |> Phoenix.HTML.safe_to_string()
"<tfoot>content</tfoot>"
Produce a “th” tag.
Examples
iex> th() |> Phoenix.HTML.safe_to_string()
"<th></th>"
iex> th("content") |> Phoenix.HTML.safe_to_string()
"<th>content</th>"
iex> th("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<th class=\"foo\">content</th>"
iex> th() do end |> Phoenix.HTML.safe_to_string()
"<th></th>"
iex> th() do "content" end |> Phoenix.HTML.safe_to_string()
"<th>content</th>"
Produce a “thead” tag.
Examples
iex> thead() |> Phoenix.HTML.safe_to_string()
"<thead></thead>"
iex> thead("content") |> Phoenix.HTML.safe_to_string()
"<thead>content</thead>"
iex> thead("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<thead class=\"foo\">content</thead>"
iex> thead() do end |> Phoenix.HTML.safe_to_string()
"<thead></thead>"
iex> thead() do "content" end |> Phoenix.HTML.safe_to_string()
"<thead>content</thead>"
Produce a “time” tag.
Examples
iex> time() |> Phoenix.HTML.safe_to_string()
"<time></time>"
iex> time("content") |> Phoenix.HTML.safe_to_string()
"<time>content</time>"
iex> time("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<time class=\"foo\">content</time>"
iex> time() do end |> Phoenix.HTML.safe_to_string()
"<time></time>"
iex> time() do "content" end |> Phoenix.HTML.safe_to_string()
"<time>content</time>"
Produce a “title” tag.
Examples
iex> title() |> Phoenix.HTML.safe_to_string()
"<title></title>"
iex> title("content") |> Phoenix.HTML.safe_to_string()
"<title>content</title>"
iex> title("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<title class=\"foo\">content</title>"
iex> title() do end |> Phoenix.HTML.safe_to_string()
"<title></title>"
iex> title() do "content" end |> Phoenix.HTML.safe_to_string()
"<title>content</title>"
Produce a “tr” tag.
Examples
iex> tr() |> Phoenix.HTML.safe_to_string()
"<tr></tr>"
iex> tr("content") |> Phoenix.HTML.safe_to_string()
"<tr>content</tr>"
iex> tr("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<tr class=\"foo\">content</tr>"
iex> tr() do end |> Phoenix.HTML.safe_to_string()
"<tr></tr>"
iex> tr() do "content" end |> Phoenix.HTML.safe_to_string()
"<tr>content</tr>"
Produce a “track” tag.
Examples
iex> track() |> Phoenix.HTML.safe_to_string()
"<track></track>"
iex> track("content") |> Phoenix.HTML.safe_to_string()
"<track>content</track>"
iex> track("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<track class=\"foo\">content</track>"
iex> track() do end |> Phoenix.HTML.safe_to_string()
"<track></track>"
iex> track() do "content" end |> Phoenix.HTML.safe_to_string()
"<track>content</track>"
Produce a “u” tag.
Examples
iex> u() |> Phoenix.HTML.safe_to_string()
"<u></u>"
iex> u("content") |> Phoenix.HTML.safe_to_string()
"<u>content</u>"
iex> u("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<u class=\"foo\">content</u>"
iex> u() do end |> Phoenix.HTML.safe_to_string()
"<u></u>"
iex> u() do "content" end |> Phoenix.HTML.safe_to_string()
"<u>content</u>"
Produce a “ul” tag.
Examples
iex> ul() |> Phoenix.HTML.safe_to_string()
"<ul></ul>"
iex> ul("content") |> Phoenix.HTML.safe_to_string()
"<ul>content</ul>"
iex> ul("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<ul class=\"foo\">content</ul>"
iex> ul() do end |> Phoenix.HTML.safe_to_string()
"<ul></ul>"
iex> ul() do "content" end |> Phoenix.HTML.safe_to_string()
"<ul>content</ul>"
Produce a “var” tag.
Examples
iex> var() |> Phoenix.HTML.safe_to_string()
"<var></var>"
iex> var("content") |> Phoenix.HTML.safe_to_string()
"<var>content</var>"
iex> var("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<var class=\"foo\">content</var>"
iex> var() do end |> Phoenix.HTML.safe_to_string()
"<var></var>"
iex> var() do "content" end |> Phoenix.HTML.safe_to_string()
"<var>content</var>"
Produce a “video” tag.
Examples
iex> video() |> Phoenix.HTML.safe_to_string()
"<video></video>"
iex> video("content") |> Phoenix.HTML.safe_to_string()
"<video>content</video>"
iex> video("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<video class=\"foo\">content</video>"
iex> video() do end |> Phoenix.HTML.safe_to_string()
"<video></video>"
iex> video() do "content" end |> Phoenix.HTML.safe_to_string()
"<video>content</video>"
Produce a “wbr” tag.
Examples
iex> wbr() |> Phoenix.HTML.safe_to_string()
"<wbr></wbr>"
iex> wbr("content") |> Phoenix.HTML.safe_to_string()
"<wbr>content</wbr>"
iex> wbr("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<wbr class=\"foo\">content</wbr>"
iex> wbr() do end |> Phoenix.HTML.safe_to_string()
"<wbr></wbr>"
iex> wbr() do "content" end |> Phoenix.HTML.safe_to_string()
"<wbr>content</wbr>"
Produce a “xmp” tag.
Examples
iex> xmp() |> Phoenix.HTML.safe_to_string()
"<xmp></xmp>"
iex> xmp("content") |> Phoenix.HTML.safe_to_string()
"<xmp>content</xmp>"
iex> xmp("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<xmp class=\"foo\">content</xmp>"
iex> xmp() do end |> Phoenix.HTML.safe_to_string()
"<xmp></xmp>"
iex> xmp() do "content" end |> Phoenix.HTML.safe_to_string()
"<xmp>content</xmp>"