<div dir="ltr"><div class="gmail_quote">On Sun, Aug 26, 2012 at 5:17 PM, Shmuel Fomberg <span dir="ltr"><<a href="mailto:shmuelfomberg@gmail.com" target="_blank">shmuelfomberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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?<span><font color="#888888"><br></font></span></blockquote></div></div><div><br>Yes, there is!<br>HTML::Zoom!<br></div></div>
</div></blockquote></div><div><br>Ah, nice one. CSS selectors will rule the world!<br>I see that all the examples are with full html. will it accept html part?<span class="HOEnZb"><font color="#888888"><br></font></span></div>
</div></blockquote><div><br>TIAS.<br><br></div></div></div>