mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Make strip_html filter strip contents of style tags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user