CI_DB_pdo_driver::_escape_str PHP Method

_escape_str() protected method

Platform-dependant string escape
protected _escape_str ( $str ) : string
return string
    protected function _escape_str($str)
    {
        // Escape the string
        $str = $this->conn_id->quote($str);
        // If there are duplicated quotes, trim them away
        return $str[0] === "'" ? substr($str, 1, -1) : $str;
    }