This commit is contained in:
2026-01-15 07:54:35 +01:00
parent b50e100732
commit 664cb3a3d8
3 changed files with 3 additions and 3 deletions
@@ -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);