mirror of
https://git.rape.pet/ulith/amputoma.git
synced 2025-02-24 21:53:59 +01:00
15 lines
314 B
Elixir
15 lines
314 B
Elixir
![]() |
defmodule Pleroma.HTML do
|
||
|
alias HtmlSanitizeEx.Scrubber
|
||
|
|
||
|
@markup Application.get_env(:pleroma, :markup)
|
||
|
|
||
|
def filter_tags(html) do
|
||
|
scrubber = Keyword.get(@markup, :scrub_policy)
|
||
|
html |> Scrubber.scrub(scrubber)
|
||
|
end
|
||
|
|
||
|
def strip_tags(html) do
|
||
|
html |> Scrubber.scrub(Scrubber.StripTags)
|
||
|
end
|
||
|
end
|