Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Removing slashes from quote

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
Removing slashes from quote
Author Message
Disharmony



Joined: 05 Jun 2008
Posts: 44

Post Removing slashes from quote Reply with quote
Whenever I put quotes, there's always a "/" that pops up. How do I get rid of that?
Thu Jun 19, 2008 7:48 pm View user's profile Send private message
Guest








Please login to hide the ads.

Syrion



Joined: 02 Aug 2006
Posts: 172

Post Reply with quote
It's to prevent errors in php if I'm right, unless someone has a better solution, I suggest to use
Code:
&_#34;  (remove underscore)
or ' instead of " (it's the same).

_________________
Mini-me
Thu Jun 19, 2008 8:51 pm View user's profile Send private message
Disharmony



Joined: 05 Jun 2008
Posts: 44

Post Reply with quote
Doesn't work. It's particularly visible when you use the meta tags plug-in so spiders might have problem reading descriptions.
Fri Jun 20, 2008 2:51 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
Do you get slashes or backslashes?
Fri Jun 20, 2008 1:16 pm View user's profile Send private message
Syrion



Joined: 02 Aug 2006
Posts: 172

Post Reply with quote
According to his first post (forward) slashes: /.

_________________
Mini-me
Fri Jun 20, 2008 5:08 pm View user's profile Send private message
Disharmony



Joined: 05 Jun 2008
Posts: 44

Post Reply with quote
Sorry for the confusion, the problem arises when I type apostrophes (') not quotes and the slashes that appear are 3x forward-slashes (\\\)
Sat Jun 21, 2008 3:37 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
I'm still confused.

Slash: /
Backslash: \

What do you get?
Sat Jun 21, 2008 1:33 pm View user's profile Send private message
Disharmony



Joined: 05 Jun 2008
Posts: 44

Post Reply with quote
Three backslashes (\\\)

ex. I'\\\m buying an elephant
Sat Jun 21, 2008 2:08 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2668
Location: Germany

Post Reply with quote
In plugins/meta-tags.php try changing this:
Code:
$cache = $xfields->fetch($id, 'meta_'.$meta);


to this:
Code:
$cache = stripslashes($xfields->fetch($id, 'meta_'.$meta));

Thu Jun 26, 2008 5:42 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1802
Location: US

Post Reply with quote
Quote:
Three backslashes (\\\)

ex. I'\\\m buying an elephant


I notice this too. Thanks for the fix FI-DD I have been removing the quotes from my meta descriptions myself. I'll try this when I get home Wink

Of course it's just 'stripslashes'... gotta remember that!

edit 07-12-08: I tested and unfortunately it only strips \\ of \\\ slashes leaving one \ each time you edit and save an article. Well, that's my results anyway.. I don't think I've done it wrong, what you think FI-DD? Anyone else have anything different? Well, that's better than it was!
Tue Jul 08, 2008 6:10 pm View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.