WebSafe$
Takes one parameter, Source
Description:
This function is always run on all incoming data from the URL parameters and POSTed URL encoded form data.
It is also run on each field as part of the following commands:
This function may also be used by the WorkQuery Text command.
The behavior of the function, in brief, is as follows:
- Remove all bytes with a value of less than or equal to 6
- Replace double quotes with HTML escape sequence
- Replace less-than with HTML escape sequence
- Replace greater-than with HTML escape sequence
- Replace single quotes with HTML escape sequence
- Replaces "null" with "Null", "true" with "True", and "false" with "False"
- This prevents conflicts with the lowercase-only tests for JsonStream$ output
- This behaviour is not used when the WebSafe$ function is used as part of JsonStream for JSON input.
- Replace an assortment of unsafe escape sequences that have no safe alternative with a single space