Escape HTML characters to prevent XSS attacks
Handle err_server messages