rawurlencode
Render a string safe for use in an url
[...] = optional ... = your value
[var $... = ]call rawurlencode $val=...
Notes
Returns a string in which all non-alphanumeric characters except
-_.~ have been replaced with a
% followed by two hex digits
Spaces are encoded as
%20 For spaces encoded as
+ signs use
urlencodeExample code
<!--parser:xtscript-->
var $input =! "£ $%^&*+
var $output = call rawurlencode $val=$input
print input = $input<br />
print output = $output
<!--/parser:xtscript-->
Show in textareaExample output
Reloadinput = ! "£ $%^&*+
output = %21%20%22%C2%A3%20%24%25%5E%26%2A%2B