From 35270cd65d2dc687ea02f413109e15dd49dad0c6 Mon Sep 17 00:00:00 2001 From: Jiri Kalvoda Date: Tue, 20 Sep 2022 03:20:04 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20stringifikace=20v=20atribut?= =?UTF-8?q?ech?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/hra/web/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/hra/web/html.py b/server/hra/web/html.py index 88901ce..d422e1d 100644 --- a/server/hra/web/html.py +++ b/server/hra/web/html.py @@ -11,7 +11,7 @@ class EscapeError(RuntimeError): def escape_attribute(x:str) -> str: - return x.replace("&", "&").replace('"', """) + return str(x).replace("&", "&").replace('"', """) def escape_attribute_name(x:str) -> str: