Example #1
0
 public static function htmlEncode($sString)
 {
     if (self::$HTML_ENTITY_FUNCTION === null) {
         self::$HTML_ENTITY_FUNCTION = Settings::getSetting('encoding', 'entities', 'full') === 'xml_only' ? "htmlspecialchars" : "htmlentities";
     }
     return call_user_func(self::$HTML_ENTITY_FUNCTION, $sString, ENT_QUOTES, Settings::getSetting("encoding", "browser", "utf-8"));
 }