0

我正在尝试检索以下内容:

<table border="0" cellpadding="2" cellspacing="7" style="vertical-align:top;">
    <tr>
    <td width="80" align="center" valign="top"><font style="font-size:85%;font-family:arial,sans-serif"></font></td>
    <td valign="top" class="j">
        <font style="font-size:85%;font-family:arial,sans-serif"><br />
        <div style="padding-top:0.8em;">
            <img alt="" height="1" width="1" />
        </div>
        <div class="lh">
            <a href="http://news.google.com/news/url?sa=t&amp;fd=R&amp;usg=AFQjCNEjddVUpIXf528-P5S0D0z5A0_QjQ&amp;url=http://www.daytondailynews.com/news/news/local/letter-points-to-plumbing-in-2011-legionnaires-out/nSmCp/">
        <b>Letter points to plumbing in 2011 <b>Legionnaires</b>&#39; outbreak at hospital</b></a><br /><font size="-1">
        <b><font color="#6f6f6f">Dayton Daily News</font></b></font><br />
        <font size="-1">A letter entered into court records identifies for the first time several factors that may have caused an outbreak of <b>Legionnaire&#39;s disease</b> in Miami Valley Hospital&#39;s new 12-story patient tower shortly after it opened in late 2010. The outbreak, at the <b>...</b></font><br /><font size="-1" class="p"></font><br />
        <font class="p" size="-1"><a class="p" href="http://news.google.com/news/more?ncl=dRROval94f0jKyM&amp;ned=us"><nobr><b></b></nobr></a></font></div></font>
    </td>
    </tr>
</table>

在我的 .aspx 页面上以 html 格式格式化。

我正在执行以下操作:

<%#  XPath("description").ToString()%>  

但它没有向我展示它的 html 渲染。我喜欢向我展示的内容已转换为 HTML。由于描述已经在 HTML 中,为什么它没有显示给我?

4

1 回答 1

1

使用文字控制

<asp:Literal id="Literal1" runat="server" text='<%# XPath("description").ToString() %>' />
于 2012-10-24T22:19:59.660 回答