$WBTRIM - removes both leading and trailing spaces

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

Syntax
$WBTRIM{anystring}
$WBTRIM[anystring]

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

Returns
value of anystring without both leading and trailing spaces.

Example

<!--
[FormFields]
wb_command=r
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBTRIM example</title>
</head>
<body>
WBV:($wbv[test])<br>
WBTRIM:($wbtrim[$wbv[test]])<br>
</body>
</html>

After running this example (e.g. using GET method: http://localhost/WBTRIM.wbsp?test=%20%20%20%20%20%20%20%20some text), the HTML code of resulting page in browser, may look like this:


<html>
<head>
<title>WBTRIM example</title>
</head>
<body>
WBV:(        some text)<br>
WBTRIM:(some text)<br>
</body>
</html>