def unescape(text):
    """
    Do reverse escaping.
    """
    escape_map = [('&amp;', '&'), ('&lt;', '<'), ('&gt;', '>'), ('&quot;',
        '"'), ('&#39;', "'")]
    for escape_values in escape_map:
        text = text.replace(*escape_values)
    return text
