I wrote the the following function (rich_text) to convert XHTML (that...