[wp-trac] [WordPress Trac] #59082: Titles and descriptions in RSS feeds need to use CDATA to encode special characters.

WordPress Trac noreply at wordpress.org
Fri Aug 11 21:20:20 UTC 2023


#59082: Titles and descriptions in RSS feeds need to use CDATA to encode special
characters.
--------------------------+------------------------------
 Reporter:  jsmoriss      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Feeds         |     Version:  6.3
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by jsmoriss):

 `wp_title_rss()` and `get_wp_title_rss()` (for example) return the value
 of `wp_get_document_title()`, which often includes HTML and/or UTF8
 encoded characters, so the RSS XML title tags should use CDATA.

 I would suggest that this is incorrect:

 {{{
 feed-rss2.php:  <title><?php wp_title_rss(); ?></title>
 feed-rss.php:   <title><?php wp_title_rss(); ?></title>
 }}}

 js.

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


More information about the wp-trac mailing list