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 - 1:23 PM:

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 - 4: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 - 5: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 - 9: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 - 11: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 - 8: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 - 9: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.