Postgres::escapeBytea PHP Method

escapeBytea() public method

Escapes bytea data for display on the screen
public escapeBytea ( $data ) : Data
$data The bytea data
return Data formatted for on-screen display
    function escapeBytea($data)
    {
        return htmlentities($data, ENT_QUOTES, 'UTF-8');
    }
Postgres