From c885327fd48480da50e1039ba676eedcdb2bca08 Mon Sep 17 00:00:00 2001 From: Daniel Souza Date: Sat, 3 Feb 2024 23:49:59 -0300 Subject: [PATCH] fix: remove xml tag at start of html --- src/syncfusion/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/syncfusion/content.ts b/src/syncfusion/content.ts index 7613826..9fa37a2 100644 --- a/src/syncfusion/content.ts +++ b/src/syncfusion/content.ts @@ -75,7 +75,7 @@ export class IaraSFDT { content: string, authHeaders: HeadersInit ): Promise { - const { html } = await fetch( + let { html } = await fetch( "https://api.iarahealth.com/speech/syncfusion/sfdt_to_html/", { method: "POST", @@ -86,6 +86,7 @@ export class IaraSFDT { body: content, } ).then(response => response.json()); + html = html.replace(``, ""); return html; }