html - How to unescape apostrophes and such in Python? -


I have a string with such symbols:

  & amp; # 39;  

This is apparently an apostrophe.

I tried saxutils.unescape () without any luck and tried urllib.unquote ()

How can I interpret this? Thanks!

Check out What are you looking for "HTML Entity Decoding"? Generally, you will find the name of some functions like "htmldecode" which will do as you wish. Both alive and cheetah provide such beautiful works, such as Sundasup.

Other answers will only work great if you do not want to use any library and all institutions are numerical.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -