diff options
Diffstat (limited to 'webAO/utils/aoml.ts')
| -rw-r--r-- | webAO/utils/aoml.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/utils/aoml.ts b/webAO/utils/aoml.ts index 76113990..79a5147d 100644 --- a/webAO/utils/aoml.ts +++ b/webAO/utils/aoml.ts @@ -75,7 +75,7 @@ const mlConfig = (iniContent: string) => { closingStack.pop(); colorStack.pop(); if (keepChar) { - currentSelector.innerHTML = letter; + currentSelector.textContent = letter; } } else if (startIdentifiers.has(letter)) { const color = identifiers.get(letter).color.split(","); @@ -87,10 +87,10 @@ const mlConfig = (iniContent: string) => { const currentColor = `color: rgb(${r},${g},${b});`; currentSelector.setAttribute("style", currentColor); if (keepChar) { - currentSelector.innerHTML = letter; + currentSelector.textContent = letter; } } else { - currentSelector.innerHTML = letter; + currentSelector.textContent = letter; if (colorStack.length === 0) { currentSelector.className = `text_${defaultColor}`; } else { |
