Just parse the generated html and then insert it in to our own template

Stops lots of issues with wrapping and injecting the bits we want