Changed the code according to xoft's suggestions.
Added a APIDump description for GetHTMLEscapedString.