spectra/lib/python3.12/site-packages/markupsafe/_native.py
2024-11-05 13:55:44 -05:00

9 lines
210 B
Python

def _escape_inner(s: str, /) -> str:
return (
s.replace("&", "&")
.replace(">", ">")
.replace("<", "&lt;")
.replace("'", "&#39;")
.replace('"', "&#34;")
)