from html.entities import name2codepoint

def unescape(s):
    for name in name2codepoint:
        s = s.replace('&%s;' % name, chr(name2codepoint[name]))
return s
print(unescape('Preheat oven to 350\xc2\xb0 F'))
print(unescape('Welcome to Lorem Ipsum Inc\xc2\xae'))
How to unescape special characters from BeautifulSoup output?