SILENT KILLERPanel

Current Path: > > opt > alt > python33 > lib64 > > python3.3 > html >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python33/lib64//python3.3/html/

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 704 bytes April 17 2024 16:58:19.
entities.py File 75240 bytes April 17 2024 16:58:19.
parser.py File 19743 bytes April 17 2024 16:58:19.

Reading File: //opt/alt/python33/lib64//python3.3/html//__init__.py

"""
General functions for HTML manipulation.
"""


_escape_map = {ord('&'): '&amp;', ord('<'): '&lt;', ord('>'): '&gt;'}
_escape_map_full = {ord('&'): '&amp;', ord('<'): '&lt;', ord('>'): '&gt;',
                    ord('"'): '&quot;', ord('\''): '&#x27;'}

# 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)

SILENT KILLER Tool