roundcubemail/program/lib/Roundcube/html.php
public static function quote($str)
    {
        static $flags;

        if (!$flags) {
            $flags = ENT_COMPAT;
            if (defined('ENT_SUBSTITUTE')) {
                $flags |= ENT_SUBSTITUTE;
            }
        }

        return @htmlspecialchars($str, $flags, RCUBE_CHARSET);
    }
public static function quote($str)
    {
        static $flags;

        if (!$flags) {
            $flags = ENT_COMPAT;
            if (defined('ENT_SUBSTITUTE')) {
                $flags |= ENT_SUBSTITUTE;
            }
        }

        return @htmlspecialchars($str, $flags, RCUBE_CHARSET);
    }
public static function quote ( $ str ) { static $ flags ; if ( ! $ flags ) { $ flags = ENT_COMPAT ; if ( defined ( 'ENT_SUBSTITUTE' ) ) { $ flags |= ENT_SUBSTITUTE ; } } return @ htmlspecialchars ( $ str , $ flags , RCUBE_CHARSET ) ; }
Replacing specials characters in html attribute value

@param string $str Input string

@return string The quoted string
Replacing specials characters in html attribute value