ephox changes <div></div> to <div />

All,

i am having issues with putting an empty div into a custom html snippet. This needs to be empty as it is useed purely to pull in a background image. Has anyone figured out a way of doing this without the ephox field regenerating the markup?

Thanks in advance

You could put the div in the template itself OR you could create just a regular text field that would allow the user to insert any specific code, then call that field wherever you want on the template.

Or you could put a non breaking space within the div tags…

Thanks for the responses. I tried the white space which works in the pages body field but not when it is in the body field of a snippet pulled into a slot?? Not sure why it should be any different depending on whether its a snippet or not…

Ignore my last response - the white space has worked. Thanks for your help!