diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex
index 107784e70..a0c43b82c 100644
--- a/lib/pleroma/html.ex
+++ b/lib/pleroma/html.ex
@@ -3,9 +3,13 @@ defmodule Pleroma.HTML do
@markup Application.get_env(:pleroma, :markup)
+ def filter_tags(html, scrubber) do
+ html |> Scrubber.scrub(scrubber)
+ end
+
def filter_tags(html) do
scrubber = Keyword.get(@markup, :scrub_policy)
- html |> Scrubber.scrub(scrubber)
+ filter_tags(html, scrubber)
end
def strip_tags(html) do