mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Merge pull request #1032 from printercu/patch-1
Single regexp for strip_html
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user