I try to replace the content inside the em. but it not work. Here the code
<p>
<em>
<a href='/'>not</a>
yes
yes
yes
</em>
</p>
Here the out put is not yes yes yes
Here I want to remove text yes and i need output only text as not.
How may i do this. I am waiting for your valuable answer.
Thanks for your advice
If you want to remove all
yes, you may do this :Demonstration
If you want to remove all text nodes, you may do this :