Browse Source

Strategická: stringifikace v atributech

master
Jiří Kalvoda 2 years ago
parent
commit
35270cd65d
  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("&", "&").replace('"', """) return str(x).replace("&", "&").replace('"', """)
def escape_attribute_name(x:str) -> str: def escape_attribute_name(x:str) -> str:

Loading…
Cancel
Save