(value)
return retVal
Returns (basic conversion) HTML unescaped value

    >>> htmlunescape('a&lt;b')
    'a<b'
Returns (basic conversion) HTML unescaped value
Returns ( basic conversion ) HTML unescaped value
def htmlunescape(value):
    """
    Returns (basic conversion) HTML unescaped value

    >>> htmlunescape('a&lt;b')
    'a<b'
    """

    retVal = value
    if value and isinstance(value, basestring):
        codes = (('&lt;', '<'), ('&gt;', '>'), ('&quot;', '"'), ('&nbsp;', ' '), ('&amp;', '&'))
        retVal = reduce(lambda x, y: x.replace(y[0], y[1]), codes, retVal)
    return retVal
def htmlunescape ( value ) : retVal = value if value and isinstance ( value , basestring ) : codes = ( ( '&lt;' , '<' ) , ( '&gt;' , '>' ) , ( '&quot;' , '"' ) , ( '&nbsp;' , ' ' ) , ( '&amp;' , '&' ) ) retVal = reduce ( lambda x , y : x . replace ( y [ 0 ] , y [ 1 ] ) , codes , retVal ) return retVal