-3

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

这是我的 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>

4

1 回答 1

0

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

于 2012-06-02T08:03:21.367 回答