0

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
0

2 Answers 2

3

You can use html.unescape():

import html
print(html.unescape('"ü'))
answered Jul 17, 2017 at 10:57
Sign up to request clarification or add additional context in comments.

Comments

1

Se the solution here. It's called decode (or unescape) and yes there is a library for that.

answered Jul 17, 2017 at 10:59

3 Comments

No links without explanations please.
Someone asked almost the same question as you. You can find the explanation there.
In that case you could flag the queston as a duplicate. I did this for my self now. ;)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.