$WBESC - URL encode string

Availability
$WBESC  is available for use with all WBSP commands:

Syntax
$WBESC{anystring}
$WBESC[anystring]

Parameters
anystring - any textual value that can be either WhizBase tag, function, plain text or any combination of those

Returns
url-encoded value of anystring.

Example

<!--
[FormFields]
wb_command=r
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBESC example</title>
</head>
<body>
Original text: äßüâ<br>
WBESC:($WBESC[äßüâ])<br>
</body>
</html>

After running this example the HTML code of resulting page in browser, may look like this:



<html>
<head>
<title>WBESC example</title>
</head>
<body>
Original text: äßüâ<br>
WBESC:(%E4%DF%FC%E2)<br>
</body>
</html>