How to create gallery by code?

After investigating, not even the HTML-Component/iframe can be added to a repeater.