开发者

Drupal Feeds showing encoded HTML markup

开发者 https://www.devze.com 2022-12-31 06:58 出处:网络
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:

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>&lt;div class=&quot;field field-type-text field-field-location&quot;&gt;   

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

0

精彩评论

暂无评论...
验证码 换一张
取 消