Merge pull request #1032 from printercu/patch-1

Single regexp for strip_html
This commit is contained in:
Justin Li
2019-02-22 13:04:04 -05:00
committed by GitHub
2 changed files with 12 additions and 1 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