Improved converting HTML to plain text