diff --git a/test/custom_scrubber_test.exs b/test/custom_scrubber_test.exs index 844d4aa..31daaa3 100644 --- a/test/custom_scrubber_test.exs +++ b/test/custom_scrubber_test.exs @@ -11,6 +11,7 @@ defmodule CustomScrubberTest do Meta.strip_comments() Meta.allow_tag_with_any_attributes("p") + Meta.allow_tag_with_uri_attributes("a", ["href"], ["https", "mailto"]) Meta.allow_tags_with_style_attributes(["span", "html", "body"]) @@ -23,9 +24,9 @@ defmodule CustomScrubberTest do test "strips everything except the allowed tags (for multiple tags)" do input = - "

hello

" + "

hello link

" - expected = "code!

hello code!

" + expected = "code!

hello code!link

" assert expected == scrub(input) end end