Ticket #929 (closed defect (bug): fixed)
html entities should not appear in rss2 title
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 1.5 |
| Severity: | major | Keywords: | |
| Cc: | ringmaster, darkcanuck, ronny |
Description
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
Change History
comment:2
anonymousbugger — 7 years ago
seams only a workaround and will create new problems, while using special chars in title.
utf8_encode -- Encodes an ISO-8859-1 string to UTF-8. A lot of people don't use ISO-8859.
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
darkcanuck — 7 years ago
See bug 1132 (duplicate?) for another possible fix: http://mosquito.wordpress.org/view.php?id=1132
This plugin will also fix the problem:
- Owner changed from anonymous to rboren
- fixed_in_version set to 1.5.1
- Status changed from new to closed
- Resolution changed from 10 to 20

