mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
ulteriori cose
This commit is contained in:
parent
27b49da1fa
commit
8a3ab600db
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ def safely_format_string(string: str, words: typing.Dict[str, str] = None, ignor
|
||||||
else:
|
else:
|
||||||
escaped = {}
|
escaped = {}
|
||||||
for key in words:
|
for key in words:
|
||||||
escaped[key] = words[key].replace("<", "<").replace(">", ">")
|
escaped[key] = str(words[key]).replace("<", "<").replace(">", ">")
|
||||||
return string.format_map(SafeDict(**escaped))
|
return string.format_map(SafeDict(**escaped))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue