I recieve HTML-files and they contain Strings like that " ("), ü(ü) and so on.
I need them humand-readable. So I could use str.replace() for that. But isn't there a package/library for Python3 which knows all character-codes by itself and could handle that?
asked Jul 17, 2017 at 10:53
buhtz
12.5k22 gold badges95 silver badges196 bronze badges
2 Answers 2
You can use html.unescape():
import html
print(html.unescape('"ü'))
answered Jul 17, 2017 at 10:57
link
2,4153 gold badges24 silver badges36 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default