Strategická: stringifikace v atributech
This commit is contained in:
parent
576a7418b9
commit
35270cd65d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue