escapeQuery in online mode