1 defmodule Pleroma.HTML.Scrubber.LinksOnly do
3 An HTML scrubbing policy which limits to links only.
6 @valid_schemes Pleroma.Config.get([:uri_schemes, :valid_schemes], [])
8 require FastSanitize.Sanitizer.Meta
9 alias FastSanitize.Sanitizer.Meta
14 Meta.allow_tag_with_uri_attributes(:a, ["href"], @valid_schemes)
16 Meta.allow_tag_with_this_attribute_values(:a, "rel", [
25 Meta.allow_tag_with_these_attributes(:a, ["name", "title"])
26 Meta.strip_everything_not_covered()