Use HTMLParser.HTMLParser() :
>>> from HTMLParser import HTMLParser >>> h = HTMLParser() >>> s = "מפגשי" >>> print h.unescape(s) מפגשי
This is part of the standard standard library .
However, if you are using Python 3, you need to import from html.parser :
>>> from html.parser import HTMLParser >>> h = HTMLParser() >>> s = 'מפגשי' >>> print(h.unescape(s)) מפגשי
source share