private bool IsHtmlContent(string contentType) { return contentType.ToLower().StartsWith("text/html"); }