Updates
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user