Hello, I'm getting an error with dompurify

const options = {
orientation: "landscape",
unit: "in",
format: [3.93, 0.98]
}
const doc = new jsPDF({options});
doc.html(renderToString(printLayout), {
callback: () => {
doc.save();
}
})
printLayout
is a variable with JSX inside.
renderToString
returns a HTML String from printLayout
.
How do I get rid of the error?
Thanks.