WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

RSS and quotes revisited

Version:
printPrint


RSS and quotes revisited
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004
Total Topics: 32
Total Posts: 142
Posted 05/17/05 - 10:23 AM:
quote post
#1
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

Edited by Synozeer on 05/17/05 - 10:26 AM

Attached Files:
rss.jpg
(54 KB, 24 downloads)
attachment

GameLinks.com
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004
Total Topics: 32
Total Posts: 142
Posted 05/22/05 - 01:57 PM:
quote post
#2
Is this fixed in 3.20?

-Adam

GameLinks.com
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 05/22/05 - 02:09 PM:
quote post
#3
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.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 05/22/05 - 06:42 PM:
quote post
#4
In either version, replace

function removespecial($str) {

with

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

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004
Total Topics: 32
Total Posts: 142
Posted 05/22/05 - 08:35 PM:
quote post
#5
Tried that change, but I'm still not getting single quotes displayed properly.

-Adam

GameLinks.com
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 05/23/05 - 05:59 PM:
quote post
#6
http://links.webmastersite.net/rssfeed.php

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004
Total Topics: 32
Total Posts: 142
Posted 05/23/05 - 06:11 PM:
quote post
#7
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

GameLinks.com
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.