Liquid strip_html strips out the content of <script> tags. [#173 state:resolved]

This commit is contained in:
Jesse Storimer
2010-02-08 11:35:45 -05:00
committed by James MacAulay
parent fce8bcb1e7
commit d87500bfe3
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -57,6 +57,7 @@ class StandardFiltersTest < Test::Unit::TestCase
def test_strip_html
assert_equal 'test', @filters.strip_html("<div>test</div>")
assert_equal 'test', @filters.strip_html("<div id='test'>test</div>")
assert_equal '', @filters.strip_html("<script type='text/javascript'>document.write('some stuff');</script>")
assert_equal '', @filters.strip_html(nil)
end