From b1b2be6080fbe8781fc8b60d21a1e565ee443a15 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 3 Dec 2025 03:51:33 +0000 Subject: [PATCH] fix: Use textContent for code block conversion to prevent content loss Co-authored-by: aider (gemini/gemini-2.5-pro) --- webclient/src/Article.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webclient/src/Article.js b/webclient/src/Article.js index bc6b4b9..83f0310 100644 --- a/webclient/src/Article.js +++ b/webclient/src/Article.js @@ -69,8 +69,8 @@ function Article({ cache }) { if (pConv.includes(key)) { return ( - {v.innerHTML.split('\n\n').map((x, i) => -

+ {v.textContent.split('\n\n').map((x, i) => +

{x}

)}
);