Forum closed. New forum available at http://community.wymeditor.org/

Problem with " and ' (solved)

Support forum for WYMeditor.

Problem with " and ' (solved)

Postby Fifi on Thu Nov 08, 2007 9:45 pm

I have already post this question in the french forum, but nobody answers...

When I test my CMS off line, WYMeditor create a good text with correct XHTML. Links, images, quote and double quote are correctly rewritten.
But, on line... I've got this :
a \ before all the quote and double quote
all the links : <a href="%5C%22http://www...
Images : <img alt="\&quot;...

What cause this problem ? How can I resolve it ?

(my website is at OVH)
______________________________________________________________

Lorsque je teste mon CMS en local, WYMeditor génère un texte qui s'affiche correctement sur une page web.
Par contre, pour le test en ligne j'ai ça :
Les apostrophes et guillemets sont précédés d'un \
et dans le code XHTML
Les liens sont écrits ainsi : <a href="%5C%22http://www...
Les images : <img alt="\&quot;...

D'où vient le souci de problème ? Quelle est la solution ?

(Mon site est hébergé chez OVH)
Last edited by Fifi on Fri Nov 09, 2007 11:50 am, edited 2 times in total.
Fifi
 
Posts: 32
Joined: Mon Nov 05, 2007 10:06 am

Postby Kuzma on Fri Nov 09, 2007 10:42 am

It looks like this is not a Wymeditor problem.
I suggest that you are using wymeditor to edit data that is stored in database. When you make a query to update your database your engine adds slashes to all quotes to prevent SQL-injections.
To solve this problem you need to remove all slashes after SELECTing data from database. If you're using PHP you can use function stripslashes();
Kuzma
 
Posts: 4
Joined: Mon Oct 29, 2007 3:38 pm

Postby Fifi on Fri Nov 09, 2007 11:16 am

Hi Kuzma, thanks for your help.

I don't use a database, here... I use WYMeditor to edit an XHTML file witch will be the content of a webpage.

Anyway, I think I've solve the problem... I use stripSlashes(); each time I read or write the text...
Fifi
 
Posts: 32
Joined: Mon Nov 05, 2007 10:06 am


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest