[wp-trac] [WordPress Trac] #4041: Some HTML (br and empty p tags) stripped when opening post in editor.

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 28 15:47:54 GMT 2007


#4041: Some HTML (br and empty p tags) stripped when opening post in editor.
----------------------------+-----------------------------------------------
 Reporter:  mellis          |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.4      
Component:  Administration  |     Version:           
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 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>&nbsp;</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?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4041>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list