 |
 |
 |
 |
 |
| Author |
Message |
Disharmony
Joined: 05 Jun 2008 Posts: 44
|
|
Removing slashes from 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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 172
|
|
|
|
It's to prevent errors in php if I'm right, unless someone has a better solution, I suggest to use  |  | &_#34; (remove underscore) | or ' instead of " (it's the same).
_________________
Mini-me |
|
| Thu Jun 19, 2008 8:51 pm |
|
 |
Disharmony
Joined: 05 Jun 2008 Posts: 44
|
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
Do you get slashes or backslashes?
|
|
| Fri Jun 20, 2008 1:16 pm |
|
 |
Syrion

Joined: 02 Aug 2006 Posts: 172
|
|
|
|
According to his first post (forward) slashes: /.
_________________
Mini-me |
|
| Fri Jun 20, 2008 5:08 pm |
|
 |
Disharmony
Joined: 05 Jun 2008 Posts: 44
|
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
I'm still confused.
Slash: /
Backslash: \
What do you get?
|
|
| Sat Jun 21, 2008 1:33 pm |
|
 |
Disharmony
Joined: 05 Jun 2008 Posts: 44
|
|
|
|
Three backslashes (\\\)
ex. I'\\\m buying an elephant
|
|
| Sat Jun 21, 2008 2:08 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
In plugins/meta-tags.php try changing this:
 |  | $cache = $xfields->fetch($id, 'meta_'.$meta); |
to this:
 |  | $cache = stripslashes($xfields->fetch($id, 'meta_'.$meta)); |
|
|
| Thu Jun 26, 2008 5:42 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
 |  | 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
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 |
|
 |
|
|
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
|
|
 |
 |
 |
|