Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 175875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:46:35+00:00 2026-05-11T13:46:35+00:00

I have a html text like this: <xml … > and I want to

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:46:36+00:00Added an answer on May 11, 2026 at 1:46 pm

    Python >= 3.4

    Official documentation for HTMLParser: Python 3

    >>> from html import unescape >>> unescape('&copy; &euro;') © € 

    Python < 3.5

    Official documentation for HTMLParser: Python 3

    >>> from html.parser import HTMLParser >>> pars = HTMLParser() >>> pars.unescape('&copy; &euro;') © € 

    Note: this was deprecated in the favor of html.unescape().

    Python 2.7

    Official documentation for HTMLParser: Python 2.7

    >>> import HTMLParser >>> pars = HTMLParser.HTMLParser() >>> pars.unescape('&copy; &euro;') u'\xa9 \u20ac' >>> print _ © € 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text box in html form like this '&lt input id=yourinput type=text
i have a html text like this: <div id=content> <p>para1</p> <p>para2</p> <p>para3</p> <p class=break>para4</p>
I have some HTML like this: <input type=radio class=MyRadio name=TheName> <label for=TheLabel>the text</label> How
In my string xml file I have a line like this: <string name=infoHeader>random text
I have some XML data that I want to convert to HTML with XSLT
I have an XML document, and one of the nodes contains &isin; like this:
I have HTML + CSS text. I need some lib with simple function like
I have an HTML document where I would like to semantically group text to
I have two text boxes t1 and t2 in an html page. I'd like
I have a NSstring which stores the html text in it. i want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.