░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/opt/alt/python33/lib64/python3.3/html
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: __init__.py
""" General functions for HTML manipulation. """ _escape_map = {ord('&'): '&', ord('<'): '<', ord('>'): '>'} _escape_map_full = {ord('&'): '&', ord('<'): '<', ord('>'): '>', ord('"'): '"', ord('\''): '''} # NB: this is a candidate for a bytes/string polymorphic interface def escape(s, quote=True): """ Replace special characters "&", "<" and ">" to HTML-safe sequences. If the optional flag quote is true (the default), the quotation mark characters, both double quote (") and single quote (') characters are also translated. """ if quote: return s.translate(_escape_map_full) return s.translate(_escape_map)
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 __pycache__/
DIR
—
2025-02-17 05:50
📄 __init__.py
PY
704 B
2024-04-17 16:58
EDIT
📄 entities.py
PY
73.5 KB
2024-04-17 16:58
EDIT
📄 parser.py
PY
19.3 KB
2024-04-17 16:58
EDIT