Your IP : 3.21.190.123
a
?�g��#@s�dZddlZddlmZddgZd0dd�Zdd d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*�"Zhd+�Z d,d-�Z
e�d.�Zd/d�Z
dS)1z*
General functions for HTML manipulation.
�N)�html5�escape�unescapeTcCsD|�dd�}|�dd�}|�dd�}|r@|�dd�}|�d d
�}|S)z�
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.
�&z&�<z<�>z>�"z"�'z')�replace)�sZquote�r�2/opt/alt/python39/lib64/python3.9/html/__init__.pyrs���
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Ÿ)"r�
��������������������������������>~����������������������������i��i��i��i��i�� i���rrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5i��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��
i��i��
i�� i��i��
i��cCs�|�d�}|ddkr�|ddvr<t|dd��d�d�}nt|dd��d��}|tvrbt|Sd|krvd ks�n|d
kr�dS|tvr�dSt|�S|tvr�t|Stt|�ddd
�D]4}|d|�tvr�t|d|�||d�Sq�d|SdS)Nr6r�#ZxXr7�;rAi�i��rQr����r) �group�int�rstrip�_invalid_charrefs�_invalid_codepoints�chr�_html5�range�len)rZnum�xrrr
�_replace_charref[s$
"raz7&(#[0-9]+;?|#[xX][0-9a-fA-F]+;?|[^\t\n\f <&#;]{1,32};?)cCsd|vr|St�t|�S)a^
Convert all named and numeric character references (e.g. >, >,
&x3e;) in the string s to the corresponding unicode characters.
This function uses the rules defined by the HTML 5 standard
for both valid and invalid character references, and the list of
HTML 5 named character references defined in html.entities.html5.
r)�_charref�subra)rrrr
rzs)T)�__doc__�reZ_reZ
html.entitiesrr]�__all__rrZr[ra�compilerbrrrrr
�<module>sV
�%
?>