if you're getting html from numerous sources and you've got no control over how well/badly formed it is, is there a way to wrap it safely to include it another page?
e.g. if the rogue html has some extra close div tags it will close the divs in the host page prematurely.
I've tried various html cleaners etc but with a large variety of shitty html there's always something they can't handle. Ideally is there any such thing as an absolute wrapping tag that will be read to mean any unclosed elements inside it are assumed to be closed?
e.g. if the rogue html has some extra close div tags it will close the divs in the host page prematurely.
I've tried various html cleaners etc but with a large variety of shitty html there's always something they can't handle. Ideally is there any such thing as an absolute wrapping tag that will be read to mean any unclosed elements inside it are assumed to be closed?