mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
closes #6023
This commit is contained in:
@@ -333,7 +333,7 @@
|
||||
var pattern = (tags || ['']).map(function (tag) {
|
||||
return utils.escapeRegexChars(tag);
|
||||
}).join('|');
|
||||
return String(str).replace(new RegExp('</?(?:' + pattern + ')[^<>]*>', 'gi'), '');
|
||||
return String(str).replace(new RegExp('<(\\/)?(' + (pattern || '[^\\s>]+') + ')(\\s+[^<>]*?)?\\s*(\\/)?>', 'gi'), '');
|
||||
},
|
||||
|
||||
invalidUnicodeChars: XRegExp('[^\\p{L}\\s\\d\\-_]', 'g'),
|
||||
|
||||
Reference in New Issue
Block a user