13 lines
213 B
Elixir
13 lines
213 B
Elixir
defmodule OutlookWeb.ViewHelpers do
|
|
|
|
import Phoenix.HTML, only: [raw: 1]
|
|
|
|
@doc "Just sanitize tags"
|
|
def tidy_raw(html) do
|
|
html
|
|
|> Floki.parse_fragment!()
|
|
|> Floki.raw_html()
|
|
|> raw
|
|
end
|
|
end
|