Is there a CPAN module or code snippet that I can use to modify local HTML files without using a regExp?
What I want to do :
- Change the start tag ( example :
<div>
to<div id="newtag">
) - Add a tag before another ( example :
</head>
to<script type="text/javascript"> ...</script></head>
- Remove tags
- Read the content of a given tag. (<- ok this can be done with an XML / HTML parser.