Current section
Files
Jump to
Current section
Files
lib/html_sanitize_ex.ex
defmodule HtmlSanitizeEx do
alias HtmlSanitizeEx.Scrubber
def noscrub(html) do
html |> Scrubber.scrub(Scrubber.NoScrub)
end
def basic_html(html) do
html |> Scrubber.scrub(Scrubber.BasicHTML)
end
def strip_tags(html) do
html |> Scrubber.scrub(Scrubber.StripTags)
end
end