How to read a image url from a rss with syndicationFeed?

后端 未结 3 1528
借酒劲吻你
借酒劲吻你 2021-02-06 14:30

How to get the image url? supposing that the tag is

    

        
3条回答
  •  醉话见心
    2021-02-06 14:52

    i also needed a solution and i used like this:

    foreach (SyndicationItem item in feed.Items)
    {
       int s,f;
            s = item.Summary.Text.IndexOf("<");
            f = item.Summary.Text.IndexOf("/>");
    
            if (f != -1)
                div1.InnerHtml += "
    photo:" + item.Summary.Text.Substring(s, f + 1 - s); }

    I extract the img from the summary;

提交回复
热议问题