Methods
-
escape
Returns result of PHP function
htmlspecialchars(). -
escapeAll
Returns result of PHP function
htmlentities(). -
uuid
Returns UUID (Universally Unique IDentifier).
public static function escape ($str, $flags = null)
Returns result of PHP function htmlspecialchars().
Parameters
-
$str
String containing special charaters to be processed by
htmlspecialchars()function. -
$flags
Flags for calling
htmlspecialchars()function. If not specified, default flagsENT_COMPAT | ENT_HTML401are used.
Example
waString::escape('>')
Result
'>'
public static function escapeAll ($str, $flags = null)
Returns result of PHP function htmlentities().
Parameters
-
$str
HTML code to be processed by
htmlentities()function. -
$flags
Flags for calling
htmlentities()function. If not specified, default flagsENT_COMPAT | ENT_HTML401are used.
Example
waString::escapeAll('<br>')
Result
'<br>'
public static function uuid()
Returns UUID (Universally Unique IDentifier).
Example
waString::uuid()
Result
'68f4aed3-9fb8-4017-b04c-620517fdd717'









