Make strip_html filter strip contents of style tags

This commit is contained in:
jamesallardice
2012-04-11 16:23:21 +01:00
parent c10f936d2a
commit 12112dee35
+1 -1
View File
@@ -59,7 +59,7 @@ module Liquid
end
def strip_html(input)
input.to_s.gsub(/<script.*?<\/script>/, '').gsub(/<.*?>/, '')
input.to_s.gsub(/<script.*?<\/script>/, '').gsub(/<style.*?<\/style>/, '').gsub(/<.*?>/, '')
end
# Remove all newlines from the string