帶標籤,我需要一個a
元素中去除所有標籤,例如:PHP:內<a>
<p>Lorem ipsum
<span style="color:#cc3399;">dolor sit</span> amet <a href="myurl.html">
<span style="color:#cc3399;">hello</span></a>
</p>
必須是:
<p>Lorem ipsum
<span style="color:#cc3399;">dolor sit</span> amet
<a href="myurl.html">hello</a>
</p>
[用strip_tags()](http://php.net/strip_tags)應該有所幫助。 – emmanuel
我需要一個正則表達式,因爲我必須做其他操作 – Daniele
@Daniele不,你不 – PeeHaa