/ lib / html / __init__.pyc
__init__.pyc
 1  o

 2  5�Hc�@s$dZddlZddlmZddgZdPdd�Zidd�d	d
 3  �dd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"�d#d$�d%d&�d'd(�id)d*�d+d,�d-d.�d/d0�d1d2�d3d4�d5d6�d7d8�d9d:�d;d<�d=d>�d?d@�dAdB�dCdD�dEdF�dGdH�dIdJ��ZhdK�Z	dLdM�Z
 4  e�dN�ZdOd�Z
dS)Qz*
 5  General functions for HTML manipulation.
 6  �N)�html5�escape�unescapeTcCsD|�dd�}|�dd�}|�dd�}|r |�dd�}|�d	d
 7  �}|S)z�
 8      Replace special characters "&", "<" and ">" to HTML-safe sequences.
 9      If the optional flag quote is true (the default), the quotation mark
10      characters, both double quote (") and single quote (') characters are also
11      translated.
12      �&z&amp;�<z&lt;�>z&gt;�"z&quot;�'z&#x27;)�replace)�s�quote�r
�uC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\html\__init__.pyrs���
�
�u€���u‚�uƒ�u„�u…�u†�u‡�uˆ�u‰�uŠ�u‹�uŒ���uŽ�����u‘�u’�u“�u”�u•�u–�u—�u˜�u™�uš�u›�uœ���už�uŸ>~������������������������������i��i��i��i��i��	i���rrrrrrrrrrrrrr r"r#r%r'r(r)r*r+r,r-r.r/r0r1r2r3r5r6i��i��i��i��i��i��i��i��i��i��
i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��
13  i��i��
14  i��	i��i��
i��cCs�|�d�}|ddkrL|ddvrt|dd��d�d�}nt|dd��d��}|tvr1t|Sd|kr;d	ks@n|d
15  krBdS|tvrHdSt|�S|tvrTt|Stt|�ddd
�D]}|d|�tvrxt|d|�||d�Sq^d|S)Nr7r�#�xXr8�;rBi�i��rRr������r)	�group�int�rstrip�_invalid_charrefs�_invalid_codepoints�chr�_html5�range�len)r�num�xr
r
r�_replace_charref[s&
16   �rdz7&(#[0-9]+;?|#[xX][0-9a-fA-F]+;?|[^\t\n\f <&#;]{1,32};?)cCsd|vr|St�t|�S)a^
17      Convert all named and numeric character references (e.g. &gt;, &#62;,
18      &x3e;) in the string s to the corresponding unicode characters.
19      This function uses the rules defined by the HTML 5 standard
20      for both valid and invalid character references, and the list of
21      HTML 5 named character references defined in html.entities.html5.
22      r)�_charref�subrd)rr
r
rrzs)T)�__doc__�re�_re�
html.entitiesrr_�__all__rr\r]rd�compilererr
r
r
r�<module>s�
23  ��������	�
24  ���
������������������� �!�"�%
25