Changed custom sanitazion egrep function in glossa.inc to PHP's pg_escape_string() function.