SharpGs.Internal.SharpGsClient.FilterResponse C# (CSharp) Method

FilterResponse() private static method

private static FilterResponse ( string response ) : string
response string
return string
        private static string FilterResponse(string response)
        {
            var p = response;
            while (true)
            {
                var ptr = p.IndexOf(" xmlns=");
                if (ptr < 0)
                    break;
                var ptrE = p.IndexOf(p[ptr + 7], ptr + 8);
                if (ptrE <= ptr)
                    break;
                p = p.Substring(0, ptr) + p.Substring(ptrE + 1);
            }
            return p;
        }