IServer::HTMLEncode

This method applies HTML encoding to the specified string. For more information, see the HTMLEncode method of the Server Object.

HRESULT HTMLEncode(

BSTR bstrIn,

//string that contains the text to be encoded

BSTR * pbstrEncoded

//pointer to a string that receives the encoded text

);