Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 8 years ago

#13 closed defect (bug) (fixed)

′ entity code prevents RSS and Atom feeds from validating

Reported by: rmanalan's profile rmanalan Owned by: matt's profile matt
Milestone: Priority: normal
Severity: minor Version:
Component: General Keywords:
Focuses: Cc:


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);`

Change History (6)

#2 @anonymousbugger
20 years ago

It might be nice if WordPress uses only decimal or hexadecimal entities, since those are always compatible AFAIK. Of course, using the 5 XML entities is always good.

#3 @matt
20 years ago

  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 20
  • Status changed from new to closed

#5 @downloadbook
13 years ago


Last edited 13 years ago by SergeyBiryukov (previous) (diff)

This ticket was mentioned in Slack in #forums by clorith. View the logs.

8 years ago

Note: See TracTickets for help on using tickets.