Function xhtmlspecialchars
xhtmlspecialchars - a customized version of PHP htmlspecialchars to set the flags and encoding parameters to the most approriate values for general use in a UTF-8 environment.
This function forces UTF-8 encoding, the ENT_QUOTES flag, and will also use the ENT_SUBSTITUTE flag if it is available. This gives the optimal features for 5.3 and in >5.4
Package: kernel
Copyright: XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Located at nclude/functions.php
Copyright: XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Located at nclude/functions.php
string |
$string |
string to be encoded |
integer |
$dummy_flags = 0 |
ignored - for call compatibility only |
mixed |
$dummy_encoding = '' |
ignored - for call compatibility only |
mixed |
$dummy_double_encode = true |
ignored - for call compatibility only |
string
|
with any characters with special significance in HTML converted to entities |