Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
why not using python builtin html unescape #9270
Comments
|
I guess a reason is mentioned in #329:
|
if |
|
The problem is undocumented. I guess it's OK as CPython is the de facto standard. Other Python implementations, such as PyPy and Jython, are moving towards using the same set of standard libraries. Ideas from other developers needed, though. |
|
This function is really old. As long as the tests pass (we may need to add some to cover calling it with |
|
If one day youtube-dl supports Python 3.4+ only, we can use it: https://docs.python.org/3/library/html.html#html.unescape. Closing now. Something not directly related to this topic but also interesting: http://bugs.python.org/issue27032 |
Used in tset_Vporn_1. Also Related to #9270
Used in test_Vporn_1. Also related to #9270
moved from 9e6dd23#commitcomment-17012611.
why the html unescape that came with python http://stackoverflow.com/a/2360639 is not used it can handle two cases that the unescapeHTML can't(
'and the ones that start with&#X) and it was improved in the last version(handle HTML5 named character references).