PMA\libraries\DatabaseInterface::escapeString PHP Method

escapeString() public method

returns properly escaped string for use in MySQL queries
public escapeString ( string $str, mixed $link = null ) : string
$str string string to be escaped
$link mixed optional database link to use
return string a MySQL escaped string
    public function escapeString($str, $link = null)
    {
        if ($link === null) {
            $link = $this->getLink();
        }
        if ($this->_extension === null) {
            return $str;
        }
        return $this->_extension->escapeString($link, $str);
    }