• File: __init__.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python37/lib64/python3.7/html/__pycache__/__init__.cpython-37.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 3.31 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Rj~@sdZddlZddlmZddgZdddZdd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*"Zd+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~ddddddddddddddddddddddddddddddddddddddddddh~Z	ddZ
edZddZ
dS)z*
General functions for HTML manipulation.
N)html5escapeunescapeTcCsD|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&amp;<z&lt;>z&gt;"z&quot;'z&#x27;)replace)sZquoter2/opt/alt/python37/lib64/python3.7/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žuŸ)"r
rrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii	i	i
i
iiiii
i
iiiiiicCs|d}|ddkr|ddkr<t|dddd}nt|ddd}|tkrbt|Sd|krvd	ksn|d
krdS|tkrdSt|S|tkrt|SxPtt|ddd
D]0}|d|tkrt|d|||dSqWd|SdS)Nr5r#ZxXr6;r?iiiu�r)	groupintrstrip_invalid_charrefs_invalid_codepointschr_html5rangelen)rZnumxrrr
_replace_charref[s$
 r_z7&(#[0-9]+;?|#[xX][0-9a-fA-F]+;?|[^\t\n\f <&#;]{1,32};?)cCsd|kr|Stt|S)a^
    Convert all named and numeric character references (e.g. &gt;, &#62;,
    &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)_charrefsubr_)rrrr
rzs)T)__doc__reZ_reZ
html.entitiesrr[__all__rrXrYr_compiler`rrrrr
<module>sp