A Solution to WordPress’ visual editor stripping empty div tags
FRIDAY, FEB 4, 2011
While writing my last post, I ran into a slight problem where I wanted to insert a empty div into my post. Basically, I had some floating images and text in my blog post so I had to insert some blank divs that would clear it out for the next line.
You obviously couldn’t do it with WordPress’ visual editor so you had to use the HTML editor. That’s find and dandy except that the annoying thing was that whenever you switched back to the Visual editor, WordPress would strip out all the empty divs you created.






















