Drupal Feeds featuring encoded HTML markup

I can’t understand why this is happening, but my RSS feeds show HTML encoding in the description field that I need to get rid of:

For instance:

<description>&lt;div class=&quot;field field-type-text field-field-location&quot;&gt; 

I just can't understand why this is happening.

+4
source share
2 answers

It is right. The <description> content must be HTML encoded in the HTML text. At least for RSS 2.0; other versions of RSS are known to be inconsistent and uneven on this issue.

(If it had not been encoded, only well-formed XHTML with names could go in the element, and this approach would not be accepted, primarily because RSS precedes XHTML.)

+1
source

I believe that you are suffering from this problem:

http://drupal.org/node/666930

This is the main PHP error that exists in some versions of PHP, here the main error is:

http://bugs.php.net/bug.php?id=45996

+1
source

Source: https://habr.com/ru/post/1310831/


All Articles