spectra/lib/python3.12/site-packages/markupsafe/_native.py

9 lines
210 B
Python
Raw Normal View History

2024-10-16 19:37:45 -04:00
def _escape_inner(s: str, /) -> str:
return (
s.replace("&", "&")
.replace(">", ">")
.replace("<", "&lt;")
.replace("'", "&#39;")
.replace('"', "&#34;")
)