Postgres::clean PHP Method

clean() public method

Cleans (escapes) a string
public clean ( &$str ) : The
$str The string to clean, by reference
return The cleaned string
    function clean(&$str)
    {
        if ($str === null) {
            return null;
        }
        $str = str_replace("\r\n", "\n", $str);
        $str = pg_escape_string($str);
        return $str;
    }
Postgres