Replace html entities with the corresponding utf-8 characters in Python 2.6

后端 未结 3 794
长发绾君心
长发绾君心 2020-12-15 23:04

I have a html text like this:

<xml ... >

and I want to convert it to something readable:


         


        
3条回答
  •  隐瞒了意图╮
    2020-12-15 23:35

    There is a function here that does it, as linked from the post Fred pointed out. Copied here to make things easier.

    Credit to Fred Larson for linking to the other question on SO. Credit to dF for posting the link.

提交回复
热议问题