Onebox embeds too much content when target page has malformed HTML

Not sure how to fix this. Can we make onebox more tolerant of screwed up HTML?