Restored missing entity parsing logic in TextAsHtml (with fix for #57)