mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-17 05:10:40 -07:00
fix: strip_html for multi line <script>/<style>/comments, #70
This commit is contained in:
+1
-1
@@ -32,5 +32,5 @@ export function newline_to_br (v: string) {
|
||||
}
|
||||
|
||||
export function strip_html (v: string) {
|
||||
return stringify(v).replace(/<script.*?<\/script>|<!--.*?-->|<style.*?<\/style>|<.*?>/g, '')
|
||||
return stringify(v).replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g, '')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user