o
    áË·eœ  ã                
   @   sf   d Z ddlmZ edƒdedƒdedƒdiZedƒdedƒdedƒded	ƒd
edƒdiZddd„ZdS )z 
General functions for HTML manipulation, backported from Py3.

Note that this uses Python 2.7 code with the corresponding Python 3
module names and locations.
é    )Úunicode_literalsú&z&amp;ú<z&lt;ú>z&gt;ú"z&quot;ú'z&#x27;Tc                 C   s*   t | tƒr	J dƒ‚|r|  t¡S |  t¡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Pass a unicode string)Ú
isinstanceÚbytesÚ	translateÚ_escape_map_fullÚ_escape_map)ÚsÚquote© r   úU/var/www/ideatree/venv/lib/python3.10/site-packages/future/backports/html/__init__.pyÚescape   s   

r   N)T)Ú__doc__Ú
__future__r   Úordr   r   r   r   r   r   r   Ú<module>   s    ÿ