how to transform xml with xslt preserving <br /> and not preserve other tags in a text
- by liysd
This question is quite similar to this one. Except that I want to preserve only <br /> and some <img> tags (with class="visible"). I.e from:
<example>
<text>
Some text with <br /> and <img src="source" /> then text .... <img class="visible" src="source" />
</text>
</example>
To have:
<div class="example">
<p>Some text with <br /> and then text .... <img class="visible" src="source" /></p>
</div>