$WBHE - HTML entity

Availability
$WBHE is available for use with all WBSP commands.

Syntax
$WBHE{sourcetext|validchars}
$WBHE[sourcetext|validchars]

Parameters
sourcetext - the text containing characters that should be converted to HTML entities (&#number;)
validchars - the string containing characters that will not be replaced. If not defined, default string is used. The default string contains upper and lower case English alphabet characters, number characters, space, new line (ASCII 10) and carriage return (ASCII 13)


Returns
The sourcetext with HTML entities instead of any character not in validchars list.

Example

<!--
[FormFields]
wb_command=R
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBHE</title>
</head>
<body>
These characters $wbhe[ßäëöü] will be replaced by HTML entities!
</body>
</html> 

After running this example, the source code of a resulting page should look like this:

<html>
<head>
<title>WBHE</title>
</head>
<body>
These characters &#223;&#228;&#235;&#246;&#252; will be replaced by HTML entities!
</body>
</html>