We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8724c commit ef6ef3dCopy full SHA for ef6ef3d
test/html/pipeline/sanitization_filter_test.rb
@@ -45,6 +45,12 @@ def test_github_specific_protocols_are_not_removed
45
assert_equal stuff, SanitizationFilter.call(stuff).to_s
46
end
47
48
+ def test_unknown_schemes_are_removed
49
+ stuff = '<a href="something-weird://heyyy">Wat</a> is this'
50
+ html = SanitizationFilter.call(stuff).to_s
51
+ assert_equal '<a>Wat</a> is this', html
52
+ end
53
+
54
def test_script_contents_are_removed
55
orig = '<script>JavaScript!</script>'
56
assert_equal "", SanitizationFilter.call(orig).to_s
0 commit comments