2 ms·
urllib.parse.unquote() is unrelated to HTML. It undoes URL-encoding: https://docs.python.org/3/library/urllib.parse.html#urllib.parse.unquote https://docs.pyth
by jwilk 8y ago
urllib.parse.unquote() is unrelated to HTML. It undoes URL-encoding:
https://docs.python.org/3/library/urllib.parse.html#urllib.parse.unquote https://docs.python.org/3/library/urllib.parse.html#urllib.p...
In Python ≥ 3.4, you can use html.unescape() to decode HTML entities:
https://docs.python.org/3/library/html.html#html.unescape https://docs.python.org/3/library/html.html#html.unescape
- dotancohen 8y agoYou are 100% correct. I mixed the two encodings up. Thanks.