Phoenix.HTML.safe_concat/2

Parsed documentation:
View on GitHub
Concatenates data safely.

    iex> safe_concat("<hello>", "<world>")
    {:safe, "&lt;hello&gt;&lt;world&gt;"}

    iex> safe_concat({:safe, "<hello>"}, "<world>")
    {:safe, "<hello>&lt;world&gt;"}

    iex> safe_concat("<hello>", {:safe, "<world>"})
    {:safe, "&lt;hello&gt;<world>"}

    iex> safe_concat({:safe, "<hello>"}, {:safe, "<world>"})
    {:safe, "<hello><world>"}

    iex> safe_concat({:safe, "<hello>"}, {:safe, '<world>'})
    {:safe, ["<hello>"|'<world>']}
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.