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 11 years ago.

Download all attachments as: .zip

Change History (9)

#1 @anonymousbugger
11 years ago

  • Patch set to No

#2 @anonymousbugger
11 years ago

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

#3 @matt
11 years ago

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

#4 @macmanx
11 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.

#5 @darkcanuck
11 years ago

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

#6 @macmanx
11 years ago

This plugin will also fix the problem:


#8 @ryan
11 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
Note: See TracTickets for help on using tickets.