예제 #1
0
 /// <summary>
 /// 获取第一个指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <returns></returns>
 public static string GetFirstHtmlTagValue(this string input, string htmlTag)
 {
     return(HtmlDecode.GetFirstHtmlTagValue(input, htmlTag));
 }
예제 #2
0
 /// <summary>
 /// 获取具有指定属性键值对的指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <param name="attriName"></param>
 /// <param name="attriValue"></param>
 /// <returns></returns>
 public static MatchCollection GetHtmlTagByAttri(this string input, string htmlTag, string attriName, string attriValue)
 {
     return(HtmlDecode.GetHtmlTagByAttri(input, htmlTag, attriName, attriValue));
 }
예제 #3
0
 /// <summary>
 /// 获取第<paramref name="index"/>个指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <param name="index"></param>
 /// <returns></returns>
 public static string GetHtmlTagValue(this string input, string htmlTag, int index)
 {
     return(HtmlDecode.GetHtmlTagValue(input, htmlTag, index));
 }
예제 #4
0
 /// <summary>
 /// 获取第一个指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <returns></returns>
 public static Match GetFirstHtmlTag(this string input, string htmlTag)
 {
     return(HtmlDecode.GetFirstHtmlTag(input, htmlTag));
 }
예제 #5
0
 /// <summary>
 /// 获取第<paramref name="index"/>个指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <param name="index"></param>
 /// <returns></returns>
 public static Match GetHtmlTag(this string input, string htmlTag, int index)
 {
     return(HtmlDecode.GetHtmlTag(input, htmlTag, index));
 }
예제 #6
0
 /// <summary>
 /// 获取指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <returns></returns>
 public static IEnumerable <string> GetHtmlTagValue(this string input, string htmlTag)
 {
     return(HtmlDecode.GetHtmlTagValue(input, htmlTag));
 }
예제 #7
0
 /// <summary>
 /// 获取指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <returns></returns>
 public static MatchCollection GetHtmlTag(this string input, string htmlTag)
 {
     return(HtmlDecode.GetHtmlTag(input, htmlTag));
 }
예제 #8
0
 /// <summary>
 /// 获取标签的内容
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public static string GetHtmlTagContent(this string input)
 {
     return(HtmlDecode.GetHtmlTagContent(input));
 }
예제 #9
0
 /// <summary>
 /// 获取第一个具有指定属性键值对的指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <param name="attriName"></param>
 /// <param name="attriValue"></param>
 /// <returns></returns>
 public static string GetFirstHtmlTagValueByAttri(this string input, string htmlTag, string attriName, string attriValue)
 {
     return(HtmlDecode.GetFirstHtmlTagValueByAttri(input, htmlTag, attriName, attriValue));
 }
예제 #10
0
 /// <summary>
 /// 获取具有指定属性键值对的指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <param name="attriName"></param>
 /// <param name="attriValue"></param>
 /// <returns></returns>
 public static IEnumerable <string> GetHtmlTagValueByAttri(this string input, string htmlTag, string attriName, string attriValue)
 {
     return(HtmlDecode.GetHtmlTagValueByAttri(input, htmlTag, attriName, attriValue));
 }
예제 #11
0
 /// <summary>
 /// 获取第<paramref name="index"/>个具有指定属性键值对的指定标签
 /// </summary>
 /// <param name="input"></param>
 /// <param name="htmlTag"></param>
 /// <param name="attriName"></param>
 /// <param name="attriValue"></param>
 /// <param name="index"></param>
 /// <returns></returns>
 public static Match GetHtmlTagByAttri(this string input, string htmlTag, string attriName, string attriValue, int index)
 {
     return(HtmlDecode.GetHtmlTagByAttri(input, htmlTag, attriName, attriValue, index));
 }