Taggart v0.1.5 Taggart.HTML View Source

HTML tags.

The use macro automatically handles any ambiguities between html elements and the funcions from Kernel. Kernel.div/2 for example is unimported to allow the use of the div element. If you still need to use Kernel.div/2, just call it as Kernel.div(20, 2)

All elements are generated in this module. To use the macros in your module:

use Taggart.HTML

You can exclude some of the tags:

use Taggart.HTML, except: [area: 2]

If you want more careful control over imports:

import Kernel, except: [div: 2]
import Taggart.HTML
import Taggart.Tags, only: [taggart: 0, taggart: 1]

Link to this section Summary

Functions

Produce a “a” tag

Produce a “abbr” tag

Produce a “address” tag

Produce a void “area” tag

Produce a “article” tag

Produce a “aside” tag

Produce a “audio” tag

Produce a “b” tag

Produce a void “base” tag

Produce a “bdi” tag

Produce a “bdo” tag

Produce a “blockquote” tag

Produce a “body” tag

Produce a void “br” tag

Produce a “button” tag

Produce a “canvas” tag

Produce a “caption” tag

Produce a “cite” tag

Produce a “code” tag

Produce a void “col” tag

Produce a “colgroup” tag

Produce a void “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 void “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 void “hr” tag

Produce a “html” tag

Produces an html comment

Produces a doctype tag

Produce a “i” tag

Produce a “iframe” tag

Produce a void “img” tag

Produce a void “input” tag

Produce a “ins” tag

Produce a “kbd” tag

Produce a void “keygen” tag

Produce a “label” tag

Produce a “legend” tag

Produce a “li” tag

Produce a void “link” tag

Produce a “main” tag

Produce a “map” tag

Produce a “mark” tag

Produce a “menu” tag

Produce a void “menuitem” tag

Produce a void “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 void “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 void “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 void “track” tag

Produce a “u” tag

Produce a “ul” tag

Produce a “var” tag

Produce a “video” tag

Produce a void “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>"

iex> a(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro a(ignored, attrs, list) View Source (macro)
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>"

iex> abbr(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro abbr(ignored, attrs, list) View Source (macro)
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>"

iex> address(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro address(ignored, attrs, list) View Source (macro)
Link to this macro area(attrs \\ []) View Source (macro)

Produce a void “area” tag.

Examples

iex> area() |> Phoenix.HTML.safe_to_string()
"<area>"

iex> area(class: "foo") |> Phoenix.HTML.safe_to_string()
"<area class=\"foo\">"
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>"

iex> article(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro article(ignored, attrs, list) View Source (macro)
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>"

iex> aside(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

Link to this macro aside(ignored, attrs, list) View Source (macro)
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>"

iex> audio(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

Link to this macro audio(ignored, attrs, list) View Source (macro)
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>"

iex> b(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro b(ignored, attrs, list) View Source (macro)
Link to this macro base(attrs \\ []) View Source (macro)

Produce a void “base” tag.

Examples

iex> base() |> Phoenix.HTML.safe_to_string()
"<base>"

iex> base(class: "foo") |> Phoenix.HTML.safe_to_string()
"<base class=\"foo\">"
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>"

iex> bdi(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro bdi(ignored, attrs, list) View Source (macro)
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>"

iex> bdo(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro bdo(ignored, attrs, list) View Source (macro)
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>"

iex> blockquote(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro blockquote(ignored, attrs, list) View Source (macro)
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>"

iex> body(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

Link to this macro body(ignored, attrs, list) View Source (macro)
Link to this macro br(attrs \\ []) View Source (macro)

Produce a void “br” tag.

Examples

iex> br() |> Phoenix.HTML.safe_to_string()
"<br>"

iex> br(class: "foo") |> Phoenix.HTML.safe_to_string()
"<br class=\"foo\">"
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>"

iex> button(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

Link to this macro button(ignored, attrs, list) View Source (macro)
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>"

iex> canvas(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro canvas(ignored, attrs, list) View Source (macro)
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>"

iex> caption(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

Link to this macro caption(ignored, attrs, list) View Source (macro)
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>"

iex> cite(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro cite(ignored, attrs, list) View Source (macro)
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>"

iex> code(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro code(ignored, attrs, list) View Source (macro)
Link to this macro col(attrs \\ []) View Source (macro)

Produce a void “col” tag.

Examples

iex> col() |> Phoenix.HTML.safe_to_string()
"<col>"

iex> col(class: "foo") |> Phoenix.HTML.safe_to_string()
"<col class=\"foo\">"
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>"

iex> colgroup(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

Link to this macro colgroup(ignored, attrs, list) View Source (macro)
Link to this macro command(attrs \\ []) View Source (macro)

Produce a void “command” tag.

Examples

iex> command() |> Phoenix.HTML.safe_to_string()
"<command>"

iex> command(class: "foo") |> Phoenix.HTML.safe_to_string()
"<command class=\"foo\">"
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>"

iex> content(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro content(ignored, attrs, list) View Source (macro)
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>"

iex> data(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro data(ignored, attrs, list) View Source (macro)
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>"

iex> datalist(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro datalist(ignored, attrs, list) View Source (macro)
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>"

iex> dd(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro dd(ignored, attrs, list) View Source (macro)
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>"

iex> del(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro del(ignored, attrs, list) View Source (macro)
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>"

iex> details(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro details(ignored, attrs, list) View Source (macro)
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>"

iex> dfn(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro dfn(ignored, attrs, list) View Source (macro)
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>"

iex> dialog(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro dialog(ignored, attrs, list) View Source (macro)
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>"

iex> div(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro div(ignored, attrs, list) View Source (macro)
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>"

iex> dl(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro dl(ignored, attrs, list) View Source (macro)
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>"

iex> dt(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro dt(ignored, attrs, list) View Source (macro)
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>"

iex> em(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro em(ignored, attrs, list) View Source (macro)
Link to this macro embed(attrs \\ []) View Source (macro)

Produce a void “embed” tag.

Examples

iex> embed() |> Phoenix.HTML.safe_to_string()
"<embed>"

iex> embed(class: "foo") |> Phoenix.HTML.safe_to_string()
"<embed class=\"foo\">"
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>"

iex> fieldset(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro fieldset(ignored, attrs, list) View Source (macro)
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>"

iex> figcaption(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro figcaption(ignored, attrs, list) View Source (macro)
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>"

iex> figure(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro figure(ignored, attrs, list) View Source (macro)
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>"

iex> footer(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro footer(ignored, attrs, list) View Source (macro)
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>"

iex> form(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro form(ignored, attrs, list) View Source (macro)
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>"

iex> h1(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro h1(ignored, attrs, list) View Source (macro)
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>"

iex> h2(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro h2(ignored, attrs, list) View Source (macro)
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>"

iex> h3(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro h3(ignored, attrs, list) View Source (macro)
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>"

iex> h4(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro h4(ignored, attrs, list) View Source (macro)
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>"

iex> h5(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro h5(ignored, attrs, list) View Source (macro)
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>"

iex> h6(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro h6(ignored, attrs, list) View Source (macro)
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>"

iex> head(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

Link to this macro head(ignored, attrs, list) View Source (macro)
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>"

iex> header(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro header(ignored, attrs, list) View Source (macro)
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>"

iex> hgroup(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

content

Link to this macro hgroup(ignored, attrs, list) View Source (macro)
Link to this macro hr(attrs \\ []) View Source (macro)

Produce a void “hr” tag.

Examples

iex> hr() |> Phoenix.HTML.safe_to_string()
"<hr>"

iex> hr(class: "foo") |> Phoenix.HTML.safe_to_string()
"<hr class=\"foo\">"
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>"

iex> html(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

Link to this macro html(ignored, attrs, list) View Source (macro)
Link to this macro html_comment(comment) View Source (macro)

Produces an html comment.

Examples

iex> html_comment("this is a comment") |> Phoenix.HTML.safe_to_string()
"<!-- this is a comment -->"
Link to this macro html_doctype(type \\ :html5) View Source (macro)

Produces a doctype tag.

Defaults to html5. Available doctypes are:

  • :html5
  • :html401_strict
  • :html401_transitional
  • :html401_frameset
  • :xhtml10_strict
  • :xhtml10_transitional
  • :xhtml10_frameset
  • :xhtml11

Examples

iex> html_doctype() |> Phoenix.HTML.safe_to_string()
"<!DOCTYPE html>"

iex> html_doctype(:html5) |> Phoenix.HTML.safe_to_string()
"<!DOCTYPE html>"

iex> html_doctype(:xhtml11) |> Phoenix.HTML.safe_to_string()
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"
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>"

iex> i(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro i(ignored, attrs, list) View Source (macro)
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>"

iex> iframe(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

Link to this macro iframe(ignored, attrs, list) View Source (macro)
Link to this macro img(attrs \\ []) View Source (macro)

Produce a void “img” tag.

Examples

iex> img() |> Phoenix.HTML.safe_to_string()
"<img>"

iex> img(class: "foo") |> Phoenix.HTML.safe_to_string()
"<img class=\"foo\">"
Link to this macro input(attrs \\ []) View Source (macro)

Produce a void “input” tag.

Examples

iex> input() |> Phoenix.HTML.safe_to_string()
"<input>"

iex> input(class: "foo") |> Phoenix.HTML.safe_to_string()
"<input class=\"foo\">"
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>"

iex> ins(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro ins(ignored, attrs, list) View Source (macro)
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>"

iex> kbd(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro kbd(ignored, attrs, list) View Source (macro)
Link to this macro keygen(attrs \\ []) View Source (macro)

Produce a void “keygen” tag.

Examples

iex> keygen() |> Phoenix.HTML.safe_to_string()
"<keygen>"

iex> keygen(class: "foo") |> Phoenix.HTML.safe_to_string()
"<keygen class=\"foo\">"
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>"

iex> label(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

Link to this macro label(ignored, attrs, list) View Source (macro)
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>"

iex> legend(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

Link to this macro legend(ignored, attrs, list) View Source (macro)
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>"

iex> li(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

  • content
  • Link to this macro li(ignored, attrs, list) View Source (macro)
    Link to this macro link(attrs \\ []) View Source (macro)

    Produce a void “link” tag.

    Examples

    iex> link() |> Phoenix.HTML.safe_to_string()
    "<link>"
    
    iex> link(class: "foo") |> Phoenix.HTML.safe_to_string()
    "<link class=\"foo\">"
    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>"

    iex> main(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    content

    Link to this macro main(ignored, attrs, list) View Source (macro)
    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>"

    iex> map(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro map(ignored, attrs, list) View Source (macro)
    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>"

    iex> mark(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro mark(ignored, attrs, list) View Source (macro)
    Link to this macro meta(attrs \\ []) View Source (macro)

    Produce a void “meta” tag.

    Examples

    iex> meta() |> Phoenix.HTML.safe_to_string()
    "<meta>"
    
    iex> meta(class: "foo") |> Phoenix.HTML.safe_to_string()
    "<meta class=\"foo\">"
    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>"

    iex> meter(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro meter(ignored, attrs, list) View Source (macro)
    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>"

    iex> noscript(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro noscript(ignored, attrs, list) View Source (macro)
    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>"

    iex> object(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro object(ignored, attrs, list) View Source (macro)
    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>"

    iex> ol(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

      content

    Link to this macro ol(ignored, attrs, list) View Source (macro)
    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>"

    iex> optgroup(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro optgroup(ignored, attrs, list) View Source (macro)
    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>"

    iex> option(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro option(ignored, attrs, list) View Source (macro)
    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>"

    iex> output(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro output(ignored, attrs, list) View Source (macro)
    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>"

    iex> p(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    content

    Link to this macro p(ignored, attrs, list) View Source (macro)
    Link to this macro param(attrs \\ []) View Source (macro)

    Produce a void “param” tag.

    Examples

    iex> param() |> Phoenix.HTML.safe_to_string()
    "<param>"
    
    iex> param(class: "foo") |> Phoenix.HTML.safe_to_string()
    "<param class=\"foo\">"
    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>"

    iex> pre(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    content

    Link to this macro pre(ignored, attrs, list) View Source (macro)
    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>"

    iex> progress(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro progress(ignored, attrs, list) View Source (macro)
    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>"

    iex> q(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro q(ignored, attrs, list) View Source (macro)
    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>"

    iex> rp(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro rp(ignored, attrs, list) View Source (macro)
    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>"

    iex> rt(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro rt(ignored, attrs, list) View Source (macro)
    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>"

    iex> ruby(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro ruby(ignored, attrs, list) View Source (macro)
    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>"

    iex> s(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro s(ignored, attrs, list) View Source (macro)
    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>"

    iex> samp(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro samp(ignored, attrs, list) View Source (macro)
    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>"

    iex> script(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro script(ignored, attrs, list) View Source (macro)
    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>"

    iex> section(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    content

    Link to this macro section(ignored, attrs, list) View Source (macro)
    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>"

    iex> select(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro select(ignored, attrs, list) View Source (macro)
    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>"

    iex> shadow(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro shadow(ignored, attrs, list) View Source (macro)
    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>"

    iex> small(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro small(ignored, attrs, list) View Source (macro)
    Link to this macro source(attrs \\ []) View Source (macro)

    Produce a void “source” tag.

    Examples

    iex> source() |> Phoenix.HTML.safe_to_string()
    "<source>"
    
    iex> source(class: "foo") |> Phoenix.HTML.safe_to_string()
    "<source class=\"foo\">"
    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>"

    iex> span(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro span(ignored, attrs, list) View Source (macro)
    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>"

    iex> string(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro string(ignored, attrs, list) View Source (macro)
    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>"

    iex> strong(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro strong(ignored, attrs, list) View Source (macro)
    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>"

    iex> style(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro style(ignored, attrs, list) View Source (macro)
    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>"

    iex> sub(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro sub(ignored, attrs, list) View Source (macro)
    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>"

    iex> summary(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    content

    Link to this macro summary(ignored, attrs, list) View Source (macro)
    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>"

    iex> sup(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro sup(ignored, attrs, list) View Source (macro)
    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>"

    iex> table(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    content

    Link to this macro table(ignored, attrs, list) View Source (macro)
    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>"

    iex> tbody(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

    Link to this macro tbody(ignored, attrs, list) View Source (macro)
    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>"

    iex> td(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

    Link to this macro td(ignored, attrs, list) View Source (macro)
    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>"

    iex> template(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro template(ignored, attrs, list) View Source (macro)
    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>"

    iex> textarea(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro textarea(ignored, attrs, list) View Source (macro)
    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>"

    iex> tfoot(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

    Link to this macro tfoot(ignored, attrs, list) View Source (macro)
    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>"

    iex> th(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

    Link to this macro th(ignored, attrs, list) View Source (macro)
    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>"

    iex> thead(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

    Link to this macro thead(ignored, attrs, list) View Source (macro)
    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>"

    iex> time(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro time(ignored, attrs, list) View Source (macro)
    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>"

    iex> title(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro title(ignored, attrs, list) View Source (macro)
    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>"

    iex> tr(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content”

    Link to this macro tr(ignored, attrs, list) View Source (macro)
    Link to this macro track(attrs \\ []) View Source (macro)

    Produce a void “track” tag.

    Examples

    iex> track() |> Phoenix.HTML.safe_to_string()
    "<track>"
    
    iex> track(class: "foo") |> Phoenix.HTML.safe_to_string()
    "<track class=\"foo\">"
    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>"

    iex> u(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro u(ignored, attrs, list) View Source (macro)
    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>"

    iex> ul(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

      content

    Link to this macro ul(ignored, attrs, list) View Source (macro)
    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>"

    iex> var(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “content

    Link to this macro var(ignored, attrs, list) View Source (macro)
    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>"

    iex> video(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    Link to this macro video(ignored, attrs, list) View Source (macro)
    Link to this macro wbr(attrs \\ []) View Source (macro)

    Produce a void “wbr” tag.

    Examples

    iex> wbr() |> Phoenix.HTML.safe_to_string()
    "<wbr>"
    
    iex> wbr(class: "foo") |> Phoenix.HTML.safe_to_string()
    "<wbr class=\"foo\">"
    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>"

    iex> xmp(nil, class: “foo”) do “content” end |> Phoenix.HTML.safe_to_string() “

    content

    Link to this macro xmp(ignored, attrs, list) View Source (macro)