cleanup text viewer ready for hyperlink support