a
XC?h� � # @ s� d Z ddlZddlmZ ddgZd0dd�Zdd d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*�"Zh d+�Z d,d-� Z
e�d.�Zd/d� Z
dS )1z*
General functions for HTML manipulation.
� N)�html5�escape�unescapeTc C sD | � dd�} | � dd�} | � dd�} |r@| � dd�} | � d d
�} | 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&�