Browse Source

Strategická: Oprava escapování &

master
Jiří Kalvoda 2 years ago
parent
commit
36d8b772e1
  1. 2
      server/hra/web/html.py

2
server/hra/web/html.py

@ -11,7 +11,7 @@ class EscapeError(RuntimeError):
def escape_attribute(x:str) -> str: def escape_attribute(x:str) -> str:
return x.replace("&", "&ampersand;").replace('"', """) return x.replace("&", "&").replace('"', """)
def escape_attribute_name(x:str) -> str: def escape_attribute_name(x:str) -> str:

Loading…
Cancel
Save