public INode Parse(HtmlParser parser, HtmlPortion current) { if (new Regex(@"</[a-zA-Z]").IsMatch(current.GetText(3))) { return(new IgnoreElement()); } return(null); }
private bool IsHtml(HtmlPortion current) { if (current.Is("<!--")) { return(true); } return(new Regex(@"^</?[a-zA-Z]").IsMatch(current.GetText(3))); }