diff --git a/packages/playground/src/ds/createDesignSystem.ts b/packages/playground/src/ds/createDesignSystem.ts index b9e97220dc93..b5511db56bb1 100644 --- a/packages/playground/src/ds/createDesignSystem.ts +++ b/packages/playground/src/ds/createDesignSystem.ts @@ -328,7 +328,12 @@ export const createDesignSystem = (sandbox: Sandbox) => { if (key === "kind") { suffix = ` (SyntaxKind.${info.name})` } - li.innerHTML = `${key}: ${value}${suffix}` + li.textContent = `${key}: `; + const span = document.createElement('span'); + span.className = typeofSpan; + span.textContent = value; + li.appendChild(span); + li.appendChild(document.createTextNode(suffix)); return li }