fix: SMS reminders are being sent out with an HTML code (#16966)

This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2024-10-07 17:51:04 -04:00
1 parent 79e33a4d26
commit 8aee8d9d3b
2 files changed
+9 -7

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ const turndownService = new TurndownService();
function turndown(html: string | TurndownService.Node): string {
let result = turndownService.turndown(html);
result = result.replaceAll("[<p><br></p>]", "");
result = result.replace(/\\_/g, "_");
if (result === "<p><br></p>") {
result = "";