Hi all.<br><br>I have an part of HTML that I need to edit. <br>Currently, I'm wrapping it in '<html><head></head><body>'.$str.'</body></html>',<br>and the use HTML::TreeBuilder to parse, modify, and dump it back to text.<br>
and then I remove the enclosing tags.<br><br>It works pretty well so far, but is there a better way?<br><br>Shmuel.<br>