bool IsHtmlResponse(HttpContextBase httpContext) { return httpContext.Response.ContentType == "text/html" || httpContext.Response.ContentType == "application/xhtml+xml"; }