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