$WBCNL - clear new line

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

Syntax
$WBCNL{anystring}
$WBCNL[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 new line characters (ASCII 13 and ASCII 10).

Example

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

After running this example (e.g. using GET method: http://localhost/WBCNL.wbsp?test=first line%0D%0Asecond line), the HTML code of resulting page in browser, may look like this:



<html>
<head>
<title>WBCNL example</title>
</head>
<body>
WBV:(first line
second line)<br>
WBCNL:(first linesecond line)<br>
</body>
</html>