Strategická: stringifikace v atributech

This commit is contained in:
Jiří Kalvoda 2022-09-20 03:20:04 +02:00
parent 576a7418b9
commit 35270cd65d

View file

@ -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: