[wp-trac] [WordPress Trac] #64464: Does Not Escape the Ampersand when It Appears in Something that Looks Like Escape Codes

WordPress Trac noreply at wordpress.org
Thu Jan 1 23:09:21 UTC 2026


#64464: Does Not Escape the Ampersand when It Appears in Something that Looks Like
Escape Codes
--------------------------+------------------------------
 Reporter:  chiarella86   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by westonruter):

 * version:  6.8.3 =>


Comment:

 I just tried publishing a post by adding this to a Paragraph block:

 {{{
 &
 
 }}}

 In the code view in the editor, the content is:


 {{{
 <!-- wp:paragraph -->
 <p>&amp;<br>&#22;</p>
 <!-- /wp:paragraph -->
 }}}

 When looking at the RSS feed, the content appears as:


 {{{
 <content:encoded><![CDATA[
 <p>&amp;<br>&#22;</p>
 ]]></content:encoded>
 }}}

 This seems to be what you are expecting?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64464#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list