<分区>
我尝试获取元素内的内容,我希望它在浏览器上显示时是一样的
例子
<pre class="yyy">Hello this is <span style="display: none;"> test </span> text </pre>
和
// how to alert (get) content like when it shown on browser: Hello this is text
alert($(".yyy").html());
我希望警报结果是:Hello this is text
在浏览器上显示时相同。那可能吗?怎么做谢谢。
这是我的 code