Results 1 to 2 of 2

Thread: inverted comma problem in rich text

  1. #1
    Join Date
    Jun 2006
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default inverted comma problem in rich text

    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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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);
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •