Hi all,<BR><BR>Does anyone have a function that will go through and replace non XML/XHTML chars such as & &#039; " to their HTML equivalents &amp; &quote; etc?<BR><BR>I have a basic CMS i&#039;ve developed and i&#039;ve tried using server.htmlencode on the data that is pulled from the database but its showing the raw html in the page body... which it shouldn&#039;t.<BR><BR>I was thinking a function that did a global replace on non xml/xhtml compliant chars would do the trick? Does anyone know of one?<BR><BR>Thanks in advance<BR><BR>James