I am retrieving some feeds from Craigslist.org and every feed shows up with a HTML <br> tag between each line break.

Regardless of what changes you make to the either the Drupal Input formats, Aggregator settings, or the FeedApi settings, every returned feed shows up with an HTML <br> tag in the body of the feed. Even if you remore or add all of the imput filters, this same problem always occurs.

For example, the original source appears like this:

Stop by our Garage Sale and buy our collection of Disney stuff!

Lamps, toys, pictures, bells, watches, stuffed animals, you name it!

The feed is displayed on a feed node page as:

Stop by our Garage Sale and buy our collection of Disney stuff!
<br>
Lamps, toys, pictures, bells, watches, stuffed animals, you name it!
<br>

And the body of the feed in "edit" mode is displayed as:

Stop by our Garage Sale and buy our collection of Disney stuff!
&lt;br&gt;
Lamps, toys, pictures, bells, watches, stuffed animals, you name it!
&lt;br&gt;

Is there anyway to get rid of these extra HTML <br> tags, thus preventing them from showing up?

Thanks,

Sam308

Comments

aron novak’s picture

Category: bug » support
Status: Active » Fixed

Well, i really assume that this is not a bug. I just viewed the feed with the Firefox's internal rss viewer and i could see those html tags. I also tried out akregator desktop rss reader and it behaves the same. Even Google Reader shows those html tags. Hopefully the guys at Google know how to write a good aggregator ;)
To solve the problem I suggest you to use the http://drupal.org/project/customfilter module.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Sam308’s picture

I found a solution using Search and Replace in the MySQL database.

You can do this mannually via phpMyAdmin or have it done automatically via cron using the SQL Cron module for Drupal 6.x. In either case, here are the Search and Replace MySQL statements:

General Search and Replace MySQL statement:

UPDATE `tablename` SET tablefield = replace(tablefield,"findstring","replacestring");

Search and Replace MySQL statement to clean up the nodes:

To remove the <br> statements (&lt;br&gt;) in the node_revision table:

UPDATE `node_revisions` SET teaser = replace(teaser,"&lt;br&gt;","");
UPDATE `node_revisions` SET body = replace(body,"&lt;br&gt;","");

Ssm Raheb