Wrap html in div tag before processing

This ensures the root element will always be a valid HTML element