S
shapper
Hello,
I have a string as follows:
<span class="A" id="A"><span class="B" id="B">Some Text</span></
span>
Basically I want to remove all the attributes from span B:
<span class="A" id="A"><span>Some Text</span></span>
So maybe the easiest way would be to get all the text inside the inner
span and then recreate everything inside:
<span class="A" id="A">...</span>
How can I do this? I think the best option would be Regex. Or not?
Thanks,
Miguel
I have a string as follows:
<span class="A" id="A"><span class="B" id="B">Some Text</span></
span>
Basically I want to remove all the attributes from span B:
<span class="A" id="A"><span>Some Text</span></span>
So maybe the easiest way would be to get all the text inside the inner
span and then recreate everything inside:
<span class="A" id="A">...</span>
How can I do this? I think the best option would be Regex. Or not?
Thanks,
Miguel