From 8f3beed1fa81bda44669d90a9eac2c7c3ae4e446 Mon Sep 17 00:00:00 2001 From: aSemy <897017+aSemy@users.noreply.github.com> Date: Mon, 30 Jan 2023 20:05:56 +0100 Subject: [PATCH] #2597 use textContent instead of innerText for code snippet content (#2598) --- .../src/jsMain/kotlin/com/sample/content/CodeSnippets.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web-landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt b/examples/web-landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt index 74d2c7968e..8797cc2231 100644 --- a/examples/web-landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt +++ b/examples/web-landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt @@ -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) }