| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/tornado/__pycache__/ |
Upload File : |
�
��b�3 �
�� � d Z ddlZddlZddlZddlZddlmZ ddl Z ddl m
Z
mZmZm
Z
mZmZ ej d� � Zdddd d
d�Zde
eef d
efd�Zde
eef d
efd�Zded
efd�Zde
eef d
efd�Zded
efd�Zd7de
eef ded
efd�Ze j d7de
eef ddded
efd�� � Ze j d8de
eef deded
efd�� � Z d8de
eef dee ded
e
eef fd�Z d9de
eef deded
e
eee f fd�Ze ed� � fZ e j ded
efd �� � Z!e j ded
efd!�� � Z!e j d:d"�� � Z!de
deef d
ee fd#�Z!e ed� � fZ"e j ded
efd$�� � Z#e j ded
efd%�� � Z#e j d:d&�� � Z#de
deef d
ee fd'�Z#e#Z$e#Z%e#Z&d(ed
efd)�Z' ej e#d*� � � � Z(dd+dd,d-gfd.e
eef d/ed0e
eeegef f d1ed2ee d
efd3�Z)d4e j* d
efd5�Z+d
e
eef fd6�Z, e,� � Z-dS );z�Escaping/unescaping methods for HTML, JSON, URLs, and others.
Also includes a few other miscellaneous string manipulation functions that
have crept in over time.
� N)�unicode_type)�Union�Any�Optional�Dict�List�Callablez[&<>"']z&z<z>z"z')�&�<�>�"�'�value�returnc �T � t � d� t | � � � � S )a0 Escapes a string so it is valid within HTML or XML.
Escapes the characters ``<``, ``>``, ``"``, ``'``, and ``&``.
When used in attribute values the escaped strings must be enclosed
in quotes.
.. versionchanged:: 3.2
Added the single quote to the list of escaped characters.
c �B � t | � d� � S )Nr )�_XHTML_ESCAPE_DICT�group)�matchs �0/usr/lib/python3/dist-packages/tornado/escape.py�<lambda>zxhtml_escape.<locals>.<lambda>7 s � �(����Q���8� � )�_XHTML_ESCAPE_RE�sub�
to_basestring�r s r �xhtml_escaper + s, � � ���8�8�-��:N�:N�� � r c �R � t j dt t | � � � � S )z!Un-escapes an XML-escaped string.z&(#?)(\w+?);)�rer �_convert_entity�_unicoder s r �xhtml_unescaper"