解析描述来自rss feed

时间:2013-10-03 11:32:05

标签: asp.net asp.net-mvc rss

我从rss获得了一个项目的太多数据,我想只显示第一个< p>元件。我该如何解析这个?项目colud有< img>标记在我想忽略的第一个地方。

    @Html.Raw(@System.Web.HttpUtility.HtmlDecode(item.Description))

   <description>
                                                                                                      <p  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem   Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, </p>

    <p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, .</p>
    <p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, </p>
    </description>

我想只显示第一个&lt; p>元件。什么是最好的解决方案,可能没有解析字符串?

0 个答案:

没有答案