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
@@ -29,7 +29,7 @@ function grabParsedValue({ value, tableSchema, encryptionKey, encryptionSalt, da
if (typeof newValue == "object" && !newValue) {
return;
}
const htmlRegex = /<[^>]+>/g;
const htmlRegex = /<\/?[a-zA-Z][a-zA-Z0-9-]*(\s[^<>]*)?>/g;
if ((targetFieldSchema === null || targetFieldSchema === void 0 ? void 0 : targetFieldSchema.richText) || String(newValue).match(htmlRegex)) {
newValue = (0, sanitize_html_1.default)(newValue, sanitizeHtmlOptions_1.default);
}