Timeline for Convert XML/HTML Entities into Unicode String in Python
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 22, 2018 at 11:35 | comment | added | Jens |
html.entities.entitydefs["apos"] does not exist, and html.unescape('can't') produces "can't" which uses the U+0027 (') instead of the proper U+2019 (’) (or U+02BC, depending on which argument you follow.). But I guess that’s intended according to the character entity reference.
|
|
| Sep 5, 2017 at 7:30 | comment | added | Martijn Pieters |
In Python 3, you'd just use html.unescape(); why have a dog and bark yourself?
|
|
| May 23, 2017 at 12:03 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
| Dec 25, 2015 at 13:55 | history | answered | Victor | CC BY-SA 3.0 |