From b260d178b52158b43541b72213ed77a94c3a58f4 Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Wed, 17 Jul 2024 14:29:31 +0200 Subject: [PATCH] wip --- .../com/infomaniak/lib/richhtmleditor/executor/HtmlSetter.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/rich-html-editor/src/main/java/com/infomaniak/lib/richhtmleditor/executor/HtmlSetter.kt b/rich-html-editor/src/main/java/com/infomaniak/lib/richhtmleditor/executor/HtmlSetter.kt index 45dc303..d569afb 100644 --- a/rich-html-editor/src/main/java/com/infomaniak/lib/richhtmleditor/executor/HtmlSetter.kt +++ b/rich-html-editor/src/main/java/com/infomaniak/lib/richhtmleditor/executor/HtmlSetter.kt @@ -24,6 +24,7 @@ internal class HtmlSetter(private val webView: WebView) : JsLifecycleAwareExecut override fun executeImmediately(value: String) = webView.insertUserHtml(value) private fun WebView.insertUserHtml(html: String) { + // TODO: Escape evaluateJavascript("""document.getElementById("$EDITOR_ID").innerHTML = `${html}`""", null) }