Webmastersite.net
Register Log In

RSS and quotes revisited

Comments on RSS and quotes revisited

Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted May 17, 2005 - 11:23 AM:

Instead of dredging up the old thread, I'm starting a new one.

I'm still seeing HTML characters instead of single quotes for my RSS/XML feed. It also appears like this on the actual RSS page that WSN Links creates.

I've attached a screenshot giving an example of my feed showing just that (the highlighted entry in the picture).

Thanks,
Adam

Attached Files:
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted May 22, 2005 - 2:57 PM:

Is this fixed in 3.20?

-Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 22, 2005 - 3:09 PM:

I don't know, I haven't yet made a ' in a title since and of my sites ever get them naturally. Later today hopefully.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 22, 2005 - 7:42 PM:

In either version, replace

function removespecial($str) {

with

function removespecial($str) {
$str = str_replace('&', '&', $str); // prevent &str&str;
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted May 22, 2005 - 9:35 PM:

Tried that change, but I'm still not getting single quotes displayed properly.

-Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 23, 2005 - 6:59 PM:

http://links.webmastersite.net/rssfeed.php
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted May 23, 2005 - 7:11 PM:

I wonder what's different. Here's mine:

http://www.gamelinks.com/rss/new-games.xml

I've got single quotes not translating in both description and title.

This is copied straight out of my rssfeed.php file:

function removespecial($str) {
$str = str_replace('&', '&', $str); // prevent &str&str;
$str = str_replace('"', '"', $str); // make clean
$str = str_replace(''', "'", $str);
$str = str_replace('"', '"', $str);
$str = str_replace('Ä', 'A', $str);
$str = str_replace('ä', 'a', $str);
$str = str_replace('Ã…', 'A', $str);
$str = str_replace('Ã¥', 'a', $str);
$str = str_replace('Ö', 'O', $str);
$str = str_replace('ö', 'o', $str);
$str = str_replace('Ü', 'U', $str);
$str = str_replace('ü', 'u', $str);
$str = str_replace('ß', 'ss', $str);
$str = str_replace('ô', 'o', $str);
$str = str_replace('&', '&', $str); // prevent &str&str;
$str = str_replace('&', '&', $str);
return $str;
}

Is there some other place I should be changing this too?

-Adam
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.