HTML text escaper

Escape markup-sensitive characters or decode the five common named entities and numeric references.