How can I replace some HTML tags based on their class in Perl?
- by Victor Sanchez
I need replace some tags in HTML using Perl:
I have this:
<span class="a">text</span><span class="a">text</span><span id="b">text</span>
I need this, where the span tags with class=a are changed to b tags instead:
<b>text</b><b>text</b><span id="b">text</span>
I tried using HTML::Manipulator but did not succeed.