use Mojo::DOM; print Mojo::DOM->new->parse($string)->at('.myBody')
Works pretty well with crappy HTML too.
Updated: changed from body to .myBody, thanks to Corion++
In reply to Re: Extract Portion of HTML
by moritz
in thread Extract Portion of HTML
by pacohope
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |