RSS Double quotes replaced with and RSS single quotes replaced with &#8217

Discussion in 'HTML & Website Design' started by ianfrancisryan, Oct 24, 2012.

  1. #1
    I am taking an MLB RSS Feed into magento and am struggling with an issue.

    All double quotes in the feed are being replaced with &#8220 and all single quotes in the RSS Feed are being replaced with &#8127 i.e. double quotes appear on page as &#8220 instead of " and single quotes appear on page as &#8217 instead of '. I want double quotes in the feed to display on my site double quotes and single quotes to display on my site as single quotes.

    The line of php code taking the feed is as follows:-

    echo $this->escapeHtml(Mage::helper('core/string')->truncate(strip_tags($item->description()), 120, '... >>', $remainder, false));

    Any help would be much appreciated.
     
    ianfrancisryan, Oct 24, 2012 IP
  2. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #2
    You're escaping the HTML tags in this segment: "escapeHtml" this means it will revert the special characters to ASCII
     
    scottlpool2003, Oct 25, 2012 IP