Added util function for wrapping HTML with an arbitrary Html -> Html function.