/// <summary> /// 处理 HTML 注释 /// </summary> /// <param name="commentContent">HTML 注释信息</param> /// <returns>处理过程中所创建的注释对象,若不支持则返回 null</returns> protected virtual IHtmlComment ProcessComment( HtmlCommentContent commentContent ) { return CreateCommet( commentContent.Comment ); }
/// <summary> /// 处理注释 /// </summary> /// <param name="commentContent">注释内容</param> /// <returns></returns> protected override IHtmlComment ProcessComment( HtmlCommentContent commentContent ) { var commentObject = base.ProcessComment( commentContent ).CastTo<DomComment>(); commentObject.ContentFragment = commentContent; return commentObject; }