Some HTML (br and empty p tags) stripped when opening post in editor.
|Reported by:||mellis||Owned by:|
I edited a post in the code view of the editor and manually inserted a <br /> tag in order to create some extra white space. When I saved the post, the tags were removed. Then I tried to insert <p> </p> and clicked "save and continue editing". The extra space appeared in the post preview, but when I clicked on the code tab of the editor, the tags had disappeared. If I clicked "save and continue editing" again, the space and tags were gone.
I'm guessing that Wordpress (perhaps the visual editor in particular) is automatically stripping these "empty" tags. Since, however, I've manually inserted them into the HTML of the post, I consider this behavior a bug (especially as I don't see any options for turning off the visual editor). Is there any way to prevent Wordpress from modifying my HTML?