Skip to content

Commit b7f819e

Browse files
committed
Test SafeListSanitizer#sanitize prune=true
1 parent 0aea20d commit b7f819e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/sanitizer_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ def test_custom_prune_overrides_default_prune
263263
end
264264
end
265265

266+
def test_should_allow_custom_prune
267+
input = '<u>leave me <b>now</b></u>'
268+
assert_equal '<u>leave me </u>', safe_list_sanitize(input, tags: %w(u), prune: true)
269+
end
270+
266271
def test_should_allow_custom_tags
267272
text = "<u>foo</u>"
268273
assert_equal text, safe_list_sanitize(text, tags: %w(u))

0 commit comments

Comments
 (0)