Hacker News new | ask | show | jobs
by nousermane 1175 days ago
That is quite nifty implementation of reverse HTML escaping. But in python that could be done with much less work:

  import html
  print(html.unescape(foo))
And the best part - you don't need to debug/update the (g)sub list every time you stumble upon new weird &whatever; too. And there are a lot of those out there:

https://www.freeformatter.com/html-entities.html

1 comments

The only thing that changed since I originally wrote it was the location of the file.

https://www.reddit.com/r/LineageOS/comments/gzm7to/wifi_pass...