Skip to content

Commit

Permalink
fix: remove xml tag at start of html
Browse files Browse the repository at this point in the history
  • Loading branch information
dsouza95 committed Feb 4, 2024
1 parent ec575e9 commit c885327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/syncfusion/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class IaraSFDT {
content: string,
authHeaders: HeadersInit
): Promise<string> {
const { html } = await fetch(
let { html } = await fetch(
"https://api.iarahealth.com/speech/syncfusion/sfdt_to_html/",
{
method: "POST",
Expand All @@ -86,6 +86,7 @@ export class IaraSFDT {
body: content,
}
).then(response => response.json());
html = html.replace(`<?xml version="1.0" encoding="utf-8"?>`, "");

return html;
}
Expand Down

0 comments on commit c885327

Please sign in to comment.