fix: SMS reminders are being sent out with an HTML code (#16966)
This commit is contained in:
1 parent
79e33a4d26
commit
8aee8d9d3b
2 files changed
+9
-7
No files matched your search
@@ -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 = "";
|
||||
|
||||
Reference in new issue
Block a user