Replace html tags

Posted by Victor Sanchez on Stack Overflow See other posts from Stack Overflow or by Victor Sanchez
Published on 2010-05-11T19:17:59Z Indexed on 2010/05/11 19:24 UTC
Read the original article Hit count: 372

Filed under:
|

I need replace some tags in HTML:

Original:

<span class="a">text</span><span class="a">text</span><span id="b">text</span>

Result:

<b>text</b><b>text</b><span id="b">text</span>

I tried using HTML::Manipulator but did not succeed.

© Stack Overflow or respective owner

Related posts about perl

Related posts about html