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