https://github.com/cobrateam/python-htmlentities
