Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: