Foren

RSS feed showing html as text

thumbnail
Suresh Yadagiri, geändert vor 7 Jahren.

RSS feed showing html as text

Junior Member Beiträge: 29 Beitrittsdatum: 24.03.14 Neueste Beiträge
When we configure RSS feed the entries description showing as html text. Any suggestions? is it a bug in RSS feed?



thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: RSS feed showing html as text

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
What's the URL of the RSS feed? In particular, does the URL feed say that it's HTML. If not, the content will be escaped even if it looks like HTML code.
thumbnail
Suresh Yadagiri, geändert vor 7 Jahren.

RE: RSS feed showing html as text

Junior Member Beiträge: 29 Beitrittsdatum: 24.03.14 Neueste Beiträge
Thanks for response Samuel. The feed URL is http://rss.cnn.com/rss/cnn_topstories.rss . I don't see any type mentioned there.

We can try any URL mentioned here : http://www.cnn.com/services/rss/

Another issue noticed is, if we add multiple instances of RSS publisher to same page , the accordions not working properly. it's always expand or close top level panel menus. Seems to be panel id is not unique when multiple instances added.
thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: RSS feed showing html as text

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
Unfortunately this is a RSS 2.0 feed. The RSS specifications doesn't specify if the content is HTML or plain text and there's no way to be sure. So for a variety of reasons, the RSS reader in the portal treats the content as plain text. If you provide an Atom feed with HTML content, the RSS portlet should be able to display the HTML content correctly.