We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 775d2ab commit 753e1f8Copy full SHA for 753e1f8
packages/playground/src/ds/createDesignSystem.ts
@@ -328,7 +328,12 @@ export const createDesignSystem = (sandbox: Sandbox) => {
328
if (key === "kind") {
329
suffix = ` (SyntaxKind.${info.name})`
330
}
331
- li.innerHTML = `${key}: <span class='${typeofSpan}'>${value}</span>${suffix}`
+ li.textContent = `${key}: `;
332
+ const span = document.createElement('span');
333
+ span.className = typeofSpan;
334
+ span.textContent = value;
335
+ li.appendChild(span);
336
+ li.appendChild(document.createTextNode(suffix));
337
return li
338
339
0 commit comments