RSS

utf-8, htmlentities and htmlspecialchars in RSS feeds

Writing an RSS feed based on HTML can cause some trouble using htmlentities though it converts too much, use htmlspecialchars instead.

First: The utf8_function function converts from ISO 8859-1 to UTF-8. So you only need this function, if your input encoding/charset is ISO 8859-1. But why don’t you use UTF-8 in the first place?

Second: You don’t need htmlentities. You just need htmlspecialchars to replace the special characters by character references. htmlentities would replace “too much

How to create a user specific RSS feed

  1. Get latest version of Views node feed, for now its just a dev version a bit hidden here http://drupal.org/node/271269/release, views_node_feed-6.x-1.x-dev
  2.  Install Views Node Feed at admin/build/modules
  3. If you have an WYSIWYG editor, exclude it from:
    admin/settings/views_node_feed/add.edit-wrapper
    admin/settings/views_node_feed/add.edit-node
    admin/settings/views_node_feed/edit*
  4. Go to admin/settings/views_node_feed and create a node