mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 02:05:41 +03:00
Make strip_html strip tags spread across lines
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>/m, '').gsub(/<.*?>/m, '')
|
||||
end
|
||||
|
||||
# Remove all newlines from the string
|
||||
|
||||
Reference in New Issue
Block a user