RLi d dl ZddlmZ dej defdZdej ej defdZdej defdZ dej defd Z
dS )
N )Markupsreturnc d t | d r!t | S t t | dd dd dd dd d
d S )a Replace the characters ``&``, ``<``, ``>``, ``'``, and ``"`` in
the string with HTML-safe sequences. Use this if you need to display
text that might contain such characters in HTML.
If the object has an ``__html__`` method, it is called and the
return value is assumed to already be safe for HTML.
:param s: An object to be converted to a string and escaped.
:return: A :class:`Markup` string with the escaped text.
__html__&z&>z>