From 0caca03cb1496399063f5fa70e8c10e78f3001a7 Mon Sep 17 00:00:00 2001 From: drjones Date: Thu, 1 Oct 2026 09:28:37 -0700 Subject: [PATCH] =?UTF-8?q?critical=20UI=20fix:=20page=20bodies=20were=20H?= =?UTF-8?q?TML-escaping=20(Markup=20wrap)=20=E2=80=94=20all=2017=20pages?= =?UTF-8?q?=20now=20render=20as=20real=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 0a2c35b..1ce2071 100644 --- a/app.py +++ b/app.py @@ -308,7 +308,8 @@ def page(sec, body): ("★ PASS · " if pas else "") + "$" + f"{bal/100:.2f}" + " · " + esc(u["username"]) + "") except Exception: acct = "" - return render_template_string(BASE, body=body, bmac=BMAC, o=lambda s: "on" if s == sec else "", + from markupsafe import Markup + return render_template_string(BASE, body=Markup(body), bmac=BMAC, o=lambda s: "on" if s == sec else "", n1=n1, n2=n2, acct=acct) def how(steps):