Wrap a given element in a given type of element