如何在c#中剪切字符串中的html内容

时间:2012-06-02 07:08:09

标签: asp.net html

我有一个HTML内容,这是一个描述,我想用子串函数剪切它。但它显示错误。

这是我的HTML:

<span style="font-family: verdana; font-size: 13px; color: #000000;"><p><span style="font-  family: verdana; font-size: 13px; color: #000000;">There's no need to sacrifice performance with a small system.<br />  <br />  Experience the eco-friendly Small Form Factor (SFF) desktop platform  powered by the 2nd generation Intel&reg; Core&trade; vPro&trade; processor family.<br />  <br />  The EVO DQ67, coupled with the latest Intel&reg; Active Management  Technology (Intel&reg; AMT) 7.0, provides the unprecedented secured and  seamless PC remote management in SFF platform, featuring the latest  SuperSpeed USB 3.0, SATA 6 Gb/s technologies, and triple graphic port  options.<br />  <br />  </span><span style="font-family: verdana; font-size: 13px; color: #000000;">Select from our range of pre configured sytems or tell us what you want and we will build you your own individul    bespoke PC.</span></p>

1 个答案:

答案 0 :(得分:0)

真的需要更多关于你如何做到这一点的细节。尝试使用反斜杠转义字符串中的引号,以便 style =“font-family:变为 style = \”font-family: