fix(markdown/import): markdown quotes not escaping

This commit is contained in:
Elian Doran
2025-04-02 23:30:35 +03:00
parent 749a398128
commit 6a3c44f866
2 changed files with 7 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ function renderToHtml(content: string, title: string) {
// h1 handling needs to come before sanitization
html = importUtils.handleH1(html, title);
// html = htmlSanitizer.sanitize(html);
html = htmlSanitizer.sanitize(html);
// Remove slash for self-closing tags to match CKEditor's approach.
html = html.replace(/<(\w+)([^>]*)\s+\/>/g, "<$1$2>");