Ticket #13 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

′ entity code prevents RSS and Atom feeds from validating

Reported by: rmanalan Assigned to: matt
Priority: normal Milestone:
Component: General Version:
Severity: minor Keywords:
Cc:

Description

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


Old: Line 25: $curl = preg_replace('/(\d+)"/', '$1″', $curl); Line 26: $curl = preg_replace("/(\d+)'/", '$1′', $curl);

New: Line 25: $curl = preg_replace('/(\d+)"/', '$1″', $curl); Line 26: $curl = preg_replace("/(\d+)'/", '$1′', $curl);`

Change History

06/11/04 12:24:13 changed by rmanalan

06/11/04 12:48:06 changed by anonymousbugger

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.

06/11/04 12:52:44 changed by matt

  • owner changed from anonymous to matt.
  • status changed from new to closed.
  • resolution changed from 10 to 20.

06/11/04 22:23:52 changed by matt

  • status changed from closed to closed.