Server IP : 192.158.238.246 / Your IP : 3.133.147.169 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib64/python3.6/site-packages/markupsafe/__pycache__/ |
Upload File : |
3 2a�Q� � @ s8 d Z ddlmZ ddlmZ dd� Zdd� Zdd � Zd S )z� markupsafe._native ~~~~~~~~~~~~~~~~~~ Native Python implementation the C module is not compiled. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. � )�Markup)� text_typec C sF t | d�r| j� S tt| �jdd�jdd�jdd�jdd �jd d��S )z�Convert the characters &, <, >, ' and " in string s to HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. Marks return value as markup string. �__html__�&z&�>z>�<z<�'z'�"z")�hasattrr r r �replace)�s� r �/usr/lib64/python3.6/_native.py�escape s r c C s | dkrt � S t| �S )zMLike :func:`escape` but converts `None` into an empty markup string. N)r r )r r r r � escape_silent s r c C s t | t�st| �} | S )zoMake a string unicode if it isn't already. That way a markup string is not converted back to unicode. )� isinstancer )r r r r �soft_unicode( s r N)�__doc__Z markupsafer Zmarkupsafe._compatr r r r r r r r �<module> s