@library.filter
def entity_decode(str):
 return htmlparser.unescape(str)

@ library . filter def entity_decode ( str ) : return htmlparser . unescape ( str )
turn html entities in a string into unicode .