I have a html text like this:
<xml ... >
and I want to convert it to something readable:
<xml ...>
Any easy (and fast) way to do it in Python?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Python >= 3.4
Official documentation for
HTMLParser: Python 3Python < 3.5
Official documentation for
HTMLParser: Python 3Note: this was deprecated in the favor of
html.unescape().Python 2.7
Official documentation for
HTMLParser: Python 2.7