scripting / reallysimple

A Node package that reads RSS, Atom and RDF feeds and calls back with a simple, consistent JavaScript object.
MIT License
97 stars 0 forks source link

p-tags and backslash-n added to item descriptions of Feedland linkblog feeds #14

Open scotthansonde opened 2 days ago

scotthansonde commented 2 days ago

When using reallysimple to display my Feedland linkblog feed, I noticed that <p> tags and \n were being added to the item descriptions. This doesn't happen in all feeds. Neither I nor AI could figure why (though I can easily strip them out just for linkblog feeds, so it's not holding me up).

Example: http://data.feedland.org/feeds/davewiner.xml, the first item's description does not include the tags

CleanShot 2024-10-20 at 10 42 21

The example app for reallysimple adds the tags https://feeder.scripting.com/returnjson?feedurl=http://data.feedland.org/feeds/davewiner.xml

CleanShot 2024-10-20 at 10 46 49

scripting commented 2 days ago

Thanks for the report Scott. :-)

I initially asked for steps to reproduce, but I think the examples you provided by calling feeder.scripting.com are those.

From the example it looks like it's passing the text through the Markdown processor.

I'm finding things like that in other code. It may take a while for me to get to it.