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 -1
View File
@@ -48,7 +48,7 @@ module Liquid
end
def strip_html(input)
input.to_s.gsub(/<.*?>/, '')
input.to_s.gsub(/<script.*?<\/script>/, '').gsub(/<.*?>/, '')
end
# Remove all newlines from the string