ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Magpie plug-in stripping ampersands from feed

November 12, 2010 6:24am

Subscribe [4]
  • #1 / Nov 12, 2010 6:24am

    nathanpitman

    531 posts

    Ok, this is a really odd one, I have a news feed that I need to incorporate into a site using the Magpie plug-in. All seems good but on closer inspection I’ve realised that Magpie is stripping the ampersands from the {link} which obviously makes the URLs all but useless.

    I’m using a feed which I’ve created with Feedburner (because of other issues) and the data in the actual feed appears to be fine:

    http://feeds2.feedburner.com/haslams-living-reading-news

    However the “&” in the link nodes vanishes when Magpie parses the feed. :? My template snippet is as follows:

    {exp:magpie url="http://feeds.feedburner.com/haslams-living-reading-news" limit="3" refresh="0"}
    {items}
    <h3><a href="http://{link}">{title}</a></h3>
    <p>{description}<br />
    {/items}<br />
    {/exp:magpie}

    So when Magpie outputs the feed content I end up with a URL that reads:

    <a href="http://www.livingreading.co.uk/index.php?cID=121cType=news">http://www.livingreading.co.uk/index.php?cID=121cType=news</a>

    Instead of:

    <a href="http://www.livingreading.co.uk/index.php?cID=121&cType=news">http://www.livingreading.co.uk/index.php?cID=121&cType=news</a>

    Any ideas???

  • #2 / Nov 12, 2010 11:00am

    Ingmar

    29245 posts

    What version and build of EE are you using? I can’t reproduce this in EE 2.1.1.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases