[wp-trac] [WordPress Trac] #45829: New editor replaces > with &gt; within <pre> tag

WordPress Trac noreply at wordpress.org
Fri Jan 4 13:09:07 UTC 2019


#45829: New editor replaces > with > within <pre> tag
--------------------------+-----------------------------
 Reporter:  yannsalmon    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.0.2
 Severity:  major         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi,
 I just updated to WordPress 5 and started using the new block editor.

 I typeset source code in my posts using a <pre> tag. This code contains a
 > comparison operator. Upon saving my draft, > gets replaced with >,
 and this entity is also displayed in the article preview.

 This happens even if I disable the visual editor.

 The old editor does not present this bug and installing the Classic Editor
 extension allowed me to work around this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45829>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list