HTMLEncode/HTMLDecode

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
dtaylor
Junior Coder
Posts: 47
Joined: Mon Aug 08, 2016 2:42 am

HTMLEncode/HTMLDecode

Post by dtaylor » Thu Jul 20, 2017 6:36 pm

Can someone explain to me what these do?

I've read the help about them, but it I can't figure out what they do or how I might be able to use them.

My original thought was that I could take a string and perform HTMLEncode and it would format the string for use in a URL (such as replace spaces with %20). This does not appear to be the function of this command, so any insight is greatly appreciated.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: HTMLEncode/HTMLDecode

Post by Marcus Tettmar » Mon Jul 24, 2017 9:53 am

They do as their name suggests and as the manual says:
Replaces the characters with special HTML significance with the corresponding HTML character entities.
This is not the same as URL Encoding. For that you can use the VBScript Escape function.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts