- def filter_tags(html, scrubber) do
- html |> Scrubber.scrub(scrubber)
- end
-
+ def filter_tags(html, scrubber), do: Scrubber.scrub(html, scrubber)
@markup Application.get_env(:pleroma, :markup)
@uri_schemes Application.get_env(:pleroma, :uri_schemes, [])
@valid_schemes Keyword.get(@uri_schemes, :valid_schemes, [])
@markup Application.get_env(:pleroma, :markup)
@uri_schemes Application.get_env(:pleroma, :uri_schemes, [])
@valid_schemes Keyword.get(@uri_schemes, :valid_schemes, [])
def before_scrub(html), do: html
def scrub_attribute("img", {"src", "http" <> target}) do
def before_scrub(html), do: html
def scrub_attribute("img", {"src", "http" <> target}) do
def scrub({tag, attributes, children}), do: {tag, attributes, children}
def scrub({tag, attributes, children}), do: {tag, attributes, children}