D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib64
/
python2.7
/
site-packages
/
markupsafe
/
Filename :
_native.pyo
back
Copy
� 2a�Qc @ sE d Z d d l m Z d d l m Z d � Z d � Z d � Z d S( s� markupsafe._native ~~~~~~~~~~~~~~~~~~ Native Python implementation the C module is not compiled. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. i����( t Markup( t text_typec C se t | d � r | j � St t | � j d d � j d d � j d d � j d d � j d d � � S( s� 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. t __html__t &s &t >s >t <s <t 's 't "s "( t hasattrR R R t replace( t s( ( s8 /usr/lib64/python2.7/site-packages/markupsafe/_native.pyt escape s c C s | d k r t � St | � S( sM Like :func:`escape` but converts `None` into an empty markup string. N( t NoneR R ( R ( ( s8 /usr/lib64/python2.7/site-packages/markupsafe/_native.pyt escape_silent s c C s"