Is there a encodeURIComponent or Uri.EscapeDataString in VBScript that can be used in an classic ASP page?
I need this function to generate jQuery parseable XML.
Server.HTMLEncode does not do a complete job.
Is there a encodeURIComponent or Uri.EscapeDataString in VBScript that can be used in an classic ASP page?
I need this function to generate jQuery parseable XML.
Server.HTMLEncode does not do a complete job.
You can just escape the characters yourself if you would like, according to this link, there are only five: What characters do I need to escape in XML documents?
Therefore, something like this should work:
Otherwise, this is generally done using the
MSXML2.DOMDocument
object in VBS. Documentation is available here. A simple example of its use is ...