Can't figure out why this is hap开发者_运维百科pening, but my RSS feeds are showing HTML encoding in the description field that I need to get rid of:
For example:
<description><div class="field field-type-text field-field-location">
I just can't figure out why this would be happening.
That's correct. The content of <description>
is supposed to be XML-text-encoded HTML. At least for RSS 2.0; other versions of RSS are notoriously inconsistent and woolly on this matter.
(If it weren't encoded, then only well-formed and namespaced XHTML could go in the element. This approach was not taken, primarily because RSS predates XHTML.)
I believe you are suffering from this issue:
http://drupal.org/node/666930
It's a core PHP bug that exists in certain versions of PHP, here's the core bug:
http://bugs.php.net/bug.php?id=45996
精彩评论