PDA

View Full Version : inverted comma problem in rich text



buntyindia
06-11-2006, 04:05 AM
Hi!

I am using Rich Text Box Script.

& it is working cool i am storing the data in database
but when it have any inverted comma in the test "here's the "preloaded content" "

it gives error


BuntyIndia

djr33
06-11-2006, 06:48 AM
This isn't a javascript question.

Are you using php?

If so, before adding to your database, use:

$data = addslashes($data);

Then, do display, use:

$data = stripslashes($data);