View Full Version : Getting slashes (\) instead of quotes (' ")
rwheeler
09-20-2006, 03:33 PM
Hi,
In the FAQ Manager and while creating pages, if a ' or " is used the system seems to change it and add \
Example:
7. Who is \"BBQ Bob\"?
instead of:
7. Who is "BBQ Bob"?
Any thoughts?
Mike Morrison
09-20-2006, 06:08 PM
Does it display like that on your website or just in the FAQ Manager module within the admin tool?
rwheeler
10-09-2006, 01:28 PM
It does display that way in the FAQ Manager, but not in the text fields of the manager when editing the question and answer.
Thanks,
Richard
Mike Morrison
10-09-2006, 02:17 PM
What version are you running?
rwheeler
10-09-2006, 02:24 PM
Current version: v4.9 r31, but the anomaly was present in previous versions.
R.
Mike Morrison
10-09-2006, 02:24 PM
Look in your template's folder. Is there customized pgm-faq_display.php in there?
rwheeler
10-09-2006, 02:29 PM
There is, I modded the default type size to be a little bigger. The / vs ' issue did persist before adding the customized file though...
Mike Morrison
10-09-2006, 02:48 PM
Okeydokey. I've fixed ths in the build code for the next wrap, but that won't help you because you've got a custom pgm-faq_display.php.
So in your case, open up your pgm-faq_display.php and put stripslashes() around $row['FAQ_QUESTION'] and $row['FAQ_ANSWER'], like so...
echo " ".stripslashes($row['FAQ_ANSWER'])."</div></font>\n";
rwheeler
10-09-2006, 02:53 PM
Excellent!!! That worked, thank you very much.
R. Wheeler
Ruben
10-09-2006, 08:08 PM
This will also be in the r36 update:
- No more \" stuff in question/answers
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.