I can easily remove the element just by note.Remove() lik this:
HtmlDocument html = new HtmlDocument(); html.Load(Server.MapPath(@\"~\\Site\\themes\\default
with regex you can do or you need to do with htmlagilitypack?
string html = "Keep me"; html = Regex.Replace(html, "", "", RegexOptions.Compiled); html = Regex.Replace(html, "", "", RegexOptions.Compiled);