Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#15685 closed defect (bug) (invalid)

Post/Page Titles with '<=' not displayed properly in RSS feed

Reported by: SecGen Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.2
Component: Feeds Keywords: rss, atom, feed, post, page, title
Focuses: Cc:


When creating a post or page with the less than '<' character in the title (eg. 1 < 2), it appears as though this causes an issue with the RSS whereby anything after and including the < is not displayed.

Here is an example:

Blog Title: "WordPress <= 3.0.2 features"
RSS Title: "WordPress "

Change History (6)

comment:1 tech1633 years ago

For me:

"WordPress <= 3.0.2 features" becomes "WordPress"
"WordPress < 3.0.2 features" stays the same

Perhaps issue is with <=, rather than simply <?

comment:2 SecGen3 years ago

tech163, you may be right. I was assuming it was the open tag: <

It may well be <= then!

comment:3 SecGen3 years ago

  • Summary changed from Post/Page Titles with '<' not displayed properly in RSS feed to Post/Page Titles with '<=' not displayed properly in RSS feed

comment:4 tech1633 years ago

Commenting out line 158 of /wp-includes/default-filters.php seems to fix this:

#add_filter( 'the_title_rss',      'strip_tags'      );

comment:5 nacin3 years ago

  • Milestone changed from Awaiting Review to Future Release

comment:6 dd323 years ago

  • Milestone Future Release deleted
  • Resolution set to invalid
  • Status changed from new to closed

the_title() supports HTML in the titles, as such, if you want to use '<=' in a title, You need to use &lt;= in order to result in correct HTML in the theme, let alone in the RSS feed.

Most browsers realise it's not a HTML tag and can work around it, but RSS feeders are not that smart usually, and their XML parsers will choke on it.

Unfortunately, I have to close this as invalid as it's the expected behaviour, even if it's a bit strange sometimes.

Note: See TracTickets for help on using tickets.