def unicode_to_html(text):
 return ''.join([(u'&#%s;' % ord(i)) for i in text])

def unicode_to_html ( text ) : return '' . join ( [ ( u'&#%s;' % ord ( i ) ) for i in text ] )
turns all unicode into html entities .