′ entity code prevents RSS and Atom feeds fr (2 posts)

  1. rmanalan
    Posted 11 years ago #

    For some reason, I couldn't validate my feeds with the FeedValidator because a single quote character was being encoded the ′ entity character. Seems like that would be fine, but for some reason, it wouldn't validate. Also, Firefox couldn't display my RSS2 feed properly either because of the ′ entity character. So, I made the following changes which fixed the problem. By the way, I made this change in WP 1.2.
    File: /wp-includes/functions-formatting.php
    Line 25: $curl = preg_replace('/(\d+)"/', '$1″', $curl);
    Line 26: $curl = preg_replace("/(\d+)'/", '$1′', $curl);
    Line 25:
    $curl = preg_replace('/(\d+)"/', '$1″', $curl);
    Line 26:
    $curl = preg_replace("/(\d+)'/", '$1′', $curl);`

  2. LadyGiri
    Posted 10 years ago #

    I have installed WP 1.5 this week and I am encontering problems with the apostrophe in my RSS feed.

    More specically, the character &8217; is translated by & amp;8217;., causing an evident problem when attempting to read the file.

    Could someone tell me how I can fix this as I have been loosing my mind digging (my programming knowledge is limited) to no avail? The only solution I can see is to remove the filter for the character & but I don't know how.

    I thank you very much for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.