Updates
This commit is contained in:
@@ -45,7 +45,7 @@ export default function grabParsedValue({
|
||||
return;
|
||||
}
|
||||
|
||||
const htmlRegex = /<[^>]+>/g;
|
||||
const htmlRegex = /<\/?[a-zA-Z][a-zA-Z0-9-]*(\s[^<>]*)?>/g;
|
||||
|
||||
if (targetFieldSchema?.richText || String(newValue).match(htmlRegex)) {
|
||||
newValue = sanitizeHtml(newValue, sanitizeHtmlOptions);
|
||||
|
||||
Reference in New Issue
Block a user