Preserve existing strip_html behaviour for weird inputs

This commit is contained in:
Justin Li
2019-02-22 13:00:36 -05:00
parent 89c1ba2b0e
commit ed73794f82
2 changed files with 10 additions and 4 deletions
+3
View File
@@ -177,6 +177,9 @@ class StandardFiltersTest < Minitest::Test
assert_equal 'test', @filters.strip_html("<div\nclass='multiline'>test</div>")
assert_equal 'test', @filters.strip_html("<!-- foo bar \n test -->test")
assert_equal '', @filters.strip_html(nil)
# Quirk of the existing implementation
assert_equal 'foo;', @filters.strip_html("<<<script </script>script>foo;</script>")
end
def test_join