encode-web <string> to <encoded string> \
[ input-length <length> ]
Copied!
encode-web encodes <string> so it can be used in a HTML-like markup text (such as a web page or an XML/XHTML document), and stores the result in <encoded string>.
You can encode only the first <length> bytes, given by "input-length" clause.
Examples
In this example, a string "str" will be web-encoded and the result is in "result" variable:
set-string str=" x<y>z&\"' " encode-web str to result