Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 73f3cca

Browse files
committed
properly escaping the HTML for the code view
1 parent 9dc11a0 commit 73f3cca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/styleguide/js/code-viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ var codeViewer = {
106106
}
107107

108108
// draw html
109-
$("#sg-code-html-fill").text(html);
109+
$("#sg-code-html-fill").html(html).text();
110110
Prism.highlightElement(document.getElementById("sg-code-html-fill"));
111111

112112
// draw CSS

0 commit comments

Comments
 (0)