Skip to content

Commit c601df4

Browse files
[TS Workbench] Correctly HTML escape rendered code (#3339)
Co-authored-by: MichaelMitchell-at <=>
1 parent fe024dc commit c601df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/playground/src/ds/createDesignSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const createDesignSystem = (sandbox: Sandbox) => {
154154
createCodePre.setAttribute("tabindex", "0")
155155
const codeElement = document.createElement("code")
156156

157-
codeElement.innerHTML = code
157+
codeElement.textContent = code
158158

159159
createCodePre.appendChild(codeElement)
160160
container.appendChild(createCodePre)

0 commit comments

Comments
 (0)