Suppose you have the following HTML:
You want to load it into a
Can't you turn the html into a string, explode it and then stitch it back with the closing tag?