#2597 use textContent instead of innerText for code snippet content (#2598)

This commit is contained in:
aSemy
2023-01-30 20:05:56 +01:00
committed by GitHub
parent c3af339156
commit 8f3beed1fa

View File

@@ -10,7 +10,7 @@ import org.jetbrains.compose.web.css.keywords.auto
import org.w3c.dom.HTMLElement
private fun HTMLElement.setHighlightedCode(code: String) {
innerText = code
textContent = code
HighlightJs.highlightElement(this)
}