We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3d3a2f commit a0997faCopy full SHA for a0997fa
frontend/src/core/renderer.ts
@@ -4,8 +4,8 @@ import { markdown_to_html } from '../../renderer/pkg';
4
// Render markdown into HTML,
5
// will sanitize input to prevent possible XSS attacks
6
function render(content: string): string {
7
- content = DOMPurify.sanitize(content)
8
- return markdown_to_html(content)
+ content = markdown_to_html(content)
+ return DOMPurify.sanitize(content)
9
}
10
11
export default render
0 commit comments