Entity encoding can represent reserved characters, but safe output also depends on context, correct escaping, and trusted application...
HTML-to-text extraction is helpful for previews and notes, but meaningful output depends on headings, links, lists, hidden content,...