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

Link to this macro a(content_or_attrs \\ []) View Source (macro)
Link to this macro a(content, attrs) View Source (macro)

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>"
Link to this macro abbr(content_or_attrs \\ []) View Source (macro)
Link to this macro abbr(content, attrs) View Source (macro)

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>"
Link to this macro address(content_or_attrs \\ []) View Source (macro)
Link to this macro address(content, attrs) View Source (macro)

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>"
Link to this macro area(content_or_attrs \\ []) View Source (macro)
Link to this macro area(content, attrs) View Source (macro)

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>"
Link to this macro article(content_or_attrs \\ []) View Source (macro)
Link to this macro article(content, attrs) View Source (macro)

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>"
Link to this macro aside(content_or_attrs \\ []) View Source (macro)
Link to this macro aside(content, attrs) View Source (macro)

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>"
Link to this macro audio(content_or_attrs \\ []) View Source (macro)
Link to this macro audio(content, attrs) View Source (macro)

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>"
Link to this macro b(content_or_attrs \\ []) View Source (macro)
Link to this macro b(content, attrs) View Source (macro)

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>"
Link to this macro base(content_or_attrs \\ []) View Source (macro)
Link to this macro base(content, attrs) View Source (macro)

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>"
Link to this macro bdi(content_or_attrs \\ []) View Source (macro)
Link to this macro bdi(content, attrs) View Source (macro)

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>"
Link to this macro bdo(content_or_attrs \\ []) View Source (macro)
Link to this macro bdo(content, attrs) View Source (macro)

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>"
Link to this macro blockquote(content_or_attrs \\ []) View Source (macro)
Link to this macro blockquote(content, attrs) View Source (macro)

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>"
Link to this macro body(content_or_attrs \\ []) View Source (macro)
Link to this macro body(content, attrs) View Source (macro)

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>"
Link to this macro br(content_or_attrs \\ []) View Source (macro)
Link to this macro br(content, attrs) View Source (macro)

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>"
Link to this macro button(content_or_attrs \\ []) View Source (macro)
Link to this macro button(content, attrs) View Source (macro)

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>"
Link to this macro canvas(content_or_attrs \\ []) View Source (macro)
Link to this macro canvas(content, attrs) View Source (macro)

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>"
Link to this macro caption(content_or_attrs \\ []) View Source (macro)
Link to this macro caption(content, attrs) View Source (macro)

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>"
Link to this macro cite(content_or_attrs \\ []) View Source (macro)
Link to this macro cite(content, attrs) View Source (macro)

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>"
Link to this macro code(content_or_attrs \\ []) View Source (macro)
Link to this macro code(content, attrs) View Source (macro)

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>"
Link to this macro col(content_or_attrs \\ []) View Source (macro)
Link to this macro col(content, attrs) View Source (macro)

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>"
Link to this macro colgroup(content_or_attrs \\ []) View Source (macro)
Link to this macro colgroup(content, attrs) View Source (macro)

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>"
Link to this macro command(content_or_attrs \\ []) View Source (macro)
Link to this macro command(content, attrs) View Source (macro)

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>"
Link to this macro content(content_or_attrs \\ []) View Source (macro)
Link to this macro content(content, attrs) View Source (macro)

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>"
Link to this macro data(content_or_attrs \\ []) View Source (macro)
Link to this macro data(content, attrs) View Source (macro)

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>"
Link to this macro datalist(content_or_attrs \\ []) View Source (macro)
Link to this macro datalist(content, attrs) View Source (macro)

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>"
Link to this macro dd(content_or_attrs \\ []) View Source (macro)
Link to this macro dd(content, attrs) View Source (macro)

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>"
Link to this macro del(content_or_attrs \\ []) View Source (macro)
Link to this macro del(content, attrs) View Source (macro)

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>"
Link to this macro details(content_or_attrs \\ []) View Source (macro)
Link to this macro details(content, attrs) View Source (macro)

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>"
Link to this macro dfn(content_or_attrs \\ []) View Source (macro)
Link to this macro dfn(content, attrs) View Source (macro)

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>"
Link to this macro dialog(content_or_attrs \\ []) View Source (macro)
Link to this macro dialog(content, attrs) View Source (macro)

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>"
Link to this macro div(content_or_attrs \\ []) View Source (macro)
Link to this macro div(content, attrs) View Source (macro)

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>"
Link to this macro dl(content_or_attrs \\ []) View Source (macro)
Link to this macro dl(content, attrs) View Source (macro)

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>"
Link to this macro dt(content_or_attrs \\ []) View Source (macro)
Link to this macro dt(content, attrs) View Source (macro)

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>"
Link to this macro em(content_or_attrs \\ []) View Source (macro)
Link to this macro em(content, attrs) View Source (macro)

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>"
Link to this macro embed(content_or_attrs \\ []) View Source (macro)
Link to this macro embed(content, attrs) View Source (macro)

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>"
Link to this macro fieldset(content_or_attrs \\ []) View Source (macro)
Link to this macro fieldset(content, attrs) View Source (macro)

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>"
Link to this macro figcaption(content_or_attrs \\ []) View Source (macro)
Link to this macro figcaption(content, attrs) View Source (macro)

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>"
Link to this macro figure(content_or_attrs \\ []) View Source (macro)
Link to this macro figure(content, attrs) View Source (macro)

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>"
Link to this macro footer(content_or_attrs \\ []) View Source (macro)
Link to this macro footer(content, attrs) View Source (macro)

Produce a “footer” tag.

Examples

iex> footer() |> Phoenix.HTML.safe_to_string()
"<footer></footer>"

iex> footer("content") |> Phoenix.HTML.safe_to_string()
"<footer>content</footer>"

iex> footer("content", class: "foo") |> Phoenix.HTML.safe_to_string()
"<footer class=\"foo\">content</footer>"

iex> footer() do end |> Phoenix.HTML.safe_to_string()
"<footer></footer>"

iex> footer() do "content" end |> Phoenix.HTML.safe_to_string()
"<footer>content</footer>"
Link to this macro form(content_or_attrs \\ []) View Source (macro)
Link to this macro form(content, attrs) View Source (macro)

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>"
Link to this macro h1(content_or_attrs \\ []) View Source (macro)
Link to this macro h1(content, attrs) View Source (macro)

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>"
Link to this macro h2(content_or_attrs \\ []) View Source (macro)
Link to this macro h2(content, attrs) View Source (macro)

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>"
Link to this macro h3(content_or_attrs \\ []) View Source (macro)
Link to this macro h3(content, attrs) View Source (macro)

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>"
Link to this macro h4(content_or_attrs \\ []) View Source (macro)
Link to this macro h4(content, attrs) View Source (macro)

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>"
Link to this macro h5(content_or_attrs \\ []) View Source (macro)
Link to this macro h5(content, attrs) View Source (macro)

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>"
Link to this macro h6(content_or_attrs \\ []) View Source (macro)
Link to this macro h6(content, attrs) View Source (macro)

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>"
Link to this macro head(content_or_attrs \\ []) View Source (macro)
Link to this macro head(content, attrs) View Source (macro)

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>"
Link to this macro header(content_or_attrs \\ []) View Source (macro)
Link to this macro header(content, attrs) View Source (macro)

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>"
Link to this macro hgroup(content_or_attrs \\ []) View Source (macro)
Link to this macro hgroup(content, attrs) View Source (macro)

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>"
Link to this macro hr(content_or_attrs \\ []) View Source (macro)
Link to this macro hr(content, attrs) View Source (macro)

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>"
Link to this macro html(content_or_attrs \\ []) View Source (macro)
Link to this macro html(content, attrs) View Source (macro)

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>"
Link to this macro i(content_or_attrs \\ []) View Source (macro)
Link to this macro i(content, attrs) View Source (macro)

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>"
Link to this macro iframe(content_or_attrs \\ []) View Source (macro)
Link to this macro iframe(content, attrs) View Source (macro)

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>"
Link to this macro img(content_or_attrs \\ []) View Source (macro)
Link to this macro img(content, attrs) View Source (macro)

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>"
Link to this macro input(content_or_attrs \\ []) View Source (macro)
Link to this macro input(content, attrs) View Source (macro)

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>"
Link to this macro ins(content_or_attrs \\ []) View Source (macro)
Link to this macro ins(content, attrs) View Source (macro)

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>"
Link to this macro kbd(content_or_attrs \\ []) View Source (macro)
Link to this macro kbd(content, attrs) View Source (macro)

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>"
Link to this macro keygen(content_or_attrs \\ []) View Source (macro)
Link to this macro keygen(content, attrs) View Source (macro)

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>"
Link to this macro label(content_or_attrs \\ []) View Source (macro)
Link to this macro label(content, attrs) View Source (macro)

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>"
Link to this macro legend(content_or_attrs \\ []) View Source (macro)
Link to this macro legend(content, attrs) View Source (macro)

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>"
Link to this macro li(content_or_attrs \\ []) View Source (macro)
Link to this macro li(content, attrs) View Source (macro)

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>"
Link to this macro link(content_or_attrs \\ []) View Source (macro)
Link to this macro link(content, attrs) View Source (macro)

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>"
Link to this macro main(content_or_attrs \\ []) View Source (macro)
Link to this macro main(content, attrs) View Source (macro)

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>"
Link to this macro map(content_or_attrs \\ []) View Source (macro)
Link to this macro map(content, attrs) View Source (macro)

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>"
Link to this macro mark(content_or_attrs \\ []) View Source (macro)
Link to this macro mark(content, attrs) View Source (macro)

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>"
Link to this macro meta(content_or_attrs \\ []) View Source (macro)
Link to this macro meta(content, attrs) View Source (macro)

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>"
Link to this macro meter(content_or_attrs \\ []) View Source (macro)
Link to this macro meter(content, attrs) View Source (macro)

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>"
Link to this macro noscript(content_or_attrs \\ []) View Source (macro)
Link to this macro noscript(content, attrs) View Source (macro)

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>"
Link to this macro object(content_or_attrs \\ []) View Source (macro)
Link to this macro object(content, attrs) View Source (macro)

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>"
Link to this macro ol(content_or_attrs \\ []) View Source (macro)
Link to this macro ol(content, attrs) View Source (macro)

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>"
Link to this macro optgroup(content_or_attrs \\ []) View Source (macro)
Link to this macro optgroup(content, attrs) View Source (macro)

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>"
Link to this macro option(content_or_attrs \\ []) View Source (macro)
Link to this macro option(content, attrs) View Source (macro)

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>"
Link to this macro output(content_or_attrs \\ []) View Source (macro)
Link to this macro output(content, attrs) View Source (macro)

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>"
Link to this macro p(content_or_attrs \\ []) View Source (macro)
Link to this macro p(content, attrs) View Source (macro)

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>"
Link to this macro param(content_or_attrs \\ []) View Source (macro)
Link to this macro param(content, attrs) View Source (macro)

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>"
Link to this macro pre(content_or_attrs \\ []) View Source (macro)
Link to this macro pre(content, attrs) View Source (macro)

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>"
Link to this macro progress(content_or_attrs \\ []) View Source (macro)
Link to this macro progress(content, attrs) View Source (macro)

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>"
Link to this macro q(content_or_attrs \\ []) View Source (macro)
Link to this macro q(content, attrs) View Source (macro)

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>"
Link to this macro rp(content_or_attrs \\ []) View Source (macro)
Link to this macro rp(content, attrs) View Source (macro)

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>"
Link to this macro rt(content_or_attrs \\ []) View Source (macro)
Link to this macro rt(content, attrs) View Source (macro)

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>"
Link to this macro ruby(content_or_attrs \\ []) View Source (macro)
Link to this macro ruby(content, attrs) View Source (macro)

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>"
Link to this macro s(content_or_attrs \\ []) View Source (macro)
Link to this macro s(content, attrs) View Source (macro)

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>"
Link to this macro samp(content_or_attrs \\ []) View Source (macro)
Link to this macro samp(content, attrs) View Source (macro)

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>"
Link to this macro script(content_or_attrs \\ []) View Source (macro)
Link to this macro script(content, attrs) View Source (macro)

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>"
Link to this macro section(content_or_attrs \\ []) View Source (macro)
Link to this macro section(content, attrs) View Source (macro)

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>"
Link to this macro select(content_or_attrs \\ []) View Source (macro)
Link to this macro select(content, attrs) View Source (macro)

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>"
Link to this macro shadow(content_or_attrs \\ []) View Source (macro)
Link to this macro shadow(content, attrs) View Source (macro)

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>"
Link to this macro small(content_or_attrs \\ []) View Source (macro)
Link to this macro small(content, attrs) View Source (macro)

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>"
Link to this macro source(content_or_attrs \\ []) View Source (macro)
Link to this macro source(content, attrs) View Source (macro)

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>"
Link to this macro span(content_or_attrs \\ []) View Source (macro)
Link to this macro span(content, attrs) View Source (macro)

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>"
Link to this macro string(content_or_attrs \\ []) View Source (macro)
Link to this macro string(content, attrs) View Source (macro)

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>"
Link to this macro strong(content_or_attrs \\ []) View Source (macro)
Link to this macro strong(content, attrs) View Source (macro)

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>"
Link to this macro style(content_or_attrs \\ []) View Source (macro)
Link to this macro style(content, attrs) View Source (macro)

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>"
Link to this macro sub(content_or_attrs \\ []) View Source (macro)
Link to this macro sub(content, attrs) View Source (macro)

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>"
Link to this macro summary(content_or_attrs \\ []) View Source (macro)
Link to this macro summary(content, attrs) View Source (macro)

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>"
Link to this macro sup(content_or_attrs \\ []) View Source (macro)
Link to this macro sup(content, attrs) View Source (macro)

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>"
Link to this macro table(content_or_attrs \\ []) View Source (macro)
Link to this macro table(content, attrs) View Source (macro)

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>"
Link to this macro tbody(content_or_attrs \\ []) View Source (macro)
Link to this macro tbody(content, attrs) View Source (macro)

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>"
Link to this macro td(content_or_attrs \\ []) View Source (macro)
Link to this macro td(content, attrs) View Source (macro)

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>"
Link to this macro template(content_or_attrs \\ []) View Source (macro)
Link to this macro template(content, attrs) View Source (macro)

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>"
Link to this macro textarea(content_or_attrs \\ []) View Source (macro)
Link to this macro textarea(content, attrs) View Source (macro)

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>"
Link to this macro tfoot(content_or_attrs \\ []) View Source (macro)
Link to this macro tfoot(content, attrs) View Source (macro)

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>"
Link to this macro th(content_or_attrs \\ []) View Source (macro)
Link to this macro th(content, attrs) View Source (macro)

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>"
Link to this macro thead(content_or_attrs \\ []) View Source (macro)
Link to this macro thead(content, attrs) View Source (macro)

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>"
Link to this macro time(content_or_attrs \\ []) View Source (macro)
Link to this macro time(content, attrs) View Source (macro)

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>"
Link to this macro title(content_or_attrs \\ []) View Source (macro)
Link to this macro title(content, attrs) View Source (macro)

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>"
Link to this macro tr(content_or_attrs \\ []) View Source (macro)
Link to this macro tr(content, attrs) View Source (macro)

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>"
Link to this macro track(content_or_attrs \\ []) View Source (macro)
Link to this macro track(content, attrs) View Source (macro)

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>"
Link to this macro u(content_or_attrs \\ []) View Source (macro)
Link to this macro u(content, attrs) View Source (macro)

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>"
Link to this macro ul(content_or_attrs \\ []) View Source (macro)
Link to this macro ul(content, attrs) View Source (macro)

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>"
Link to this macro var(content_or_attrs \\ []) View Source (macro)
Link to this macro var(content, attrs) View Source (macro)

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>"
Link to this macro video(content_or_attrs \\ []) View Source (macro)
Link to this macro video(content, attrs) View Source (macro)

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>"
Link to this macro wbr(content_or_attrs \\ []) View Source (macro)
Link to this macro wbr(content, attrs) View Source (macro)

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>"
Link to this macro xmp(content_or_attrs \\ []) View Source (macro)
Link to this macro xmp(content, attrs) View Source (macro)

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