9 lines
210 B
Python
9 lines
210 B
Python
def _escape_inner(s: str, /) -> str:
|
|
return (
|
|
s.replace("&", "&")
|
|
.replace(">", ">")
|
|
.replace("<", "<")
|
|
.replace("'", "'")
|
|
.replace('"', """)
|
|
)
|