fix: preview template xml bug

This commit is contained in:
windingwind 2023-06-20 00:02:35 +08:00
parent 7df4d0bb53
commit a83b68ffa3

View File

@ -118,5 +118,7 @@ async function renderTemplatePreview(
} else {
html = `<p>Preview not available for template ${templateName}</p>`;
}
// complete <br> and <hr> tags
html = html.replace(/<br>/g, "<br/>").replace(/<hr>/g, "<hr/>");
return html;
}