Current File : //usr/lib64/python2.7/site-packages/markupsafe/_native.pyo |
�
�]�Lc @ s5 d 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 Markupc 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 t unicodet 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"