mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-11 09:55:56 +00:00
Making the script tag stripper case insensitive
This commit is contained in:
committed by
Rae2che5
parent
20b719d0de
commit
448ea5cf5c
@@ -15,8 +15,8 @@ renderer.html = function (html) {
|
|||||||
|
|
||||||
const sanatizeScriptTags = (content)=>{
|
const sanatizeScriptTags = (content)=>{
|
||||||
return content
|
return content
|
||||||
.replace(/<script/g, '<script')
|
.replace(/<script/ig, '<script')
|
||||||
.replace(/<\/script>/g, '</script>');
|
.replace(/<\/script>/ig, '</script>');
|
||||||
};
|
};
|
||||||
|
|
||||||
const tagTypes = ['div', 'span', 'a'];
|
const tagTypes = ['div', 'span', 'a'];
|
||||||
|
|||||||
Reference in New Issue
Block a user