0
這個問題不保留其他標籤頗爲相似this one。只是我想只保留<br />
和一些<img>
標籤(帶class =「可見」)。即從:如何使用XSLT維護<br />轉換XML,然後在文本
<example>
<text>
Some text with <br /> and <img src="source" /> then text .... <img class="visible" src="source" />
</text>
</example>
擁有:
<div class="example">
<p>Some text with <br /> and then text .... <img class="visible" src="source" /></p>
</div>
很好的問題,+1。見我的回答對一個完整的解決方案。 :) – 2010-04-26 17:09:28