Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#929 closed defect (bug) (fixed)

html entities should not appear in rss2 title

Reported by: anonymousbugger Owned by: ryan
Milestone: Priority: normal
Severity: major Version: 1.5
Component: General Keywords:
Focuses: Cc:


If a html-entity appears in the title, the xml file is broken.

so an entity sould be decoded and encoded as utf8

echo utf8_encode(html_entity_decode($title));

instead of echo $title;

in wp-includes/feed-functions.php line 12

will fix this problem

Attachments (1)

ent2ncr.diff (9.0 KB) - added by anonymousbugger 10 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 @anonymousbugger11 years ago

  • Patch set to No

comment:2 @anonymousbugger11 years ago

seams only a workaround and will create new problems, while using special chars in title.

comment:3 @matt11 years ago

utf8_encode -- Encodes an ISO-8859-1 string to UTF-8. A lot of people don't use ISO-8859.

comment:4 @macmanx11 years ago

This is happening to my comments feed whenever I trackback my own site. Other trackbacks come in just fine, but my own trackbacks turn the comments feed into one big XML Parse error.

comment:5 @darkcanuck11 years ago

See bug 1132 (duplicate?) for another possible fix: http://mosquito.wordpress.org/view.php?id=1132

comment:6 @macmanx11 years ago

This plugin will also fix the problem:


comment:8 @ryan11 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed

@anonymousbugger10 years ago

Note: See TracTickets for help on using tickets.