We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7255987 commit cc47af5Copy full SHA for cc47af5
src/api/sqs/handlers/emailNotifications.ts
@@ -18,7 +18,10 @@ const compiledTemplate = Handlebars.compile(emailTemplate);
18
19
const stripHtml = (html: string): string => {
20
// Remove all HTML tags and attributes, then normalize whitespace and trim
21
- const sanitized = sanitizeHtml(html, { allowedTags: [], allowedAttributes: {} });
+ const sanitized = sanitizeHtml(html, {
22
+ allowedTags: [],
23
+ allowedAttributes: {},
24
+ });
25
return sanitized.replace(/\s+/g, " ").trim();
26
};
27
0 commit comments