0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 22:42:41 +00:00

Fix issue with <a>/<aside>

This commit is contained in:
G.Ambatte
2021-08-17 20:23:26 +12:00
parent 1885a8d0cc
commit bdfcde7661

View File

@@ -508,7 +508,7 @@ const sanatizeScriptTags = (content)=>{
const tagTypes = ['div', 'span', 'a'];
const tagRegex = new RegExp(`(${
_.map(tagTypes, (type)=>{
return `\\<${type}|\\</${type}>`;
return `\\<${type}\b|\\</${type}>`;
}).join('|')})`, 'g');
const processStyleTags = (string)=>{