[thelist] VBScript: HTMLEncode with no Server object available?
Joshua Olson
joshua at waetech.com
Wed Aug 27 12:31:07 CDT 2003
----- Original Message -----
From: "Jason Handby" <jasonh at corestar.co.uk>
Sent: Wednesday, August 27, 2003 5:33 AM
> I want to be able to HTMLEncode a string, exactly as I would with
> Server.HTMLEncode() . Unfortunately, because I'm writing this script for
> Windows Scripting Host and not for an ASP page, the Server object isn't
> available.
>
> Can someone point me at some VBScript for doing the same job? Someone's
> bound to have written this already...?
Jason,
HTMLEncode really doesn't do anything other than a couple replaces on a
string. You could easily write your own to swap out < and > with their
entity (< and >) equivalents.
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168
More information about the thelist
mailing list