Hg given insert

This adds a new helper whenInsertingHTMLOf which replicated the behaviour of calling insertHTML instead of directly setting innerHTML. Functionally, it is the same as givenContentOf
We don't need to do anything with the selection in `whenInsertingHTMLOf`, so you just need to call `insertContent` :smile: