S
shapper
Hello,
I have a String as follows:
<p class="Error">Some text</p>
I need to wrap the inner text "Some text" in a span tag like:
<p class="Error"><span>Some text</span></p>
I can't make a direct replace because the paragraph class can be:
<p>, <p class="SomeClass">, <p class="SomeClass" id="MyP">, ...
Any idea how to make this?
I was thinking in Regex but I don't know how and I am not even sure if
it is the best option.
Thanks,
Miguel
I have a String as follows:
<p class="Error">Some text</p>
I need to wrap the inner text "Some text" in a span tag like:
<p class="Error"><span>Some text</span></p>
I can't make a direct replace because the paragraph class can be:
<p>, <p class="SomeClass">, <p class="SomeClass" id="MyP">, ...
Any idea how to make this?
I was thinking in Regex but I don't know how and I am not even sure if
it is the best option.
Thanks,
Miguel