CServer::HTMLEncode

The CServer::HTMLEncode function apply HTML encoding to the specified string.

chchar * HTMLEncode(
chchar * in // containing the text to be HTML encoded.
);



Return Type

chchar *
Upon successful completion, a string which contains the HTML encoded text is returned. Otherwise, NULL is returned.


Parameters

in
A string containing the text to be HTML encoded.


Remarks

This function applies HTML encoding to the specified string. If a browser get a encoded text, it will display it in HTML format, rather than in plain text. For example, if the parameter in contains a string with symbols of "< >", the returned value would contain the HTML code for those characters as "&lt; &gt;". A browser would display these two symbols as "< >".


See Also

CServer, CServer::URLEncode

Example