WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Quotes in Description are escaped \" - Unwanted! (4 posts)

  1. nr2012
    Member
    Posted 2 years ago #

    Hi there

    I'm using the nextgen gallery to upload images to my side and add some description (copyright info) below the picture.

    Unfortunately, If I'm enterin quotes in the description area the quotes (single- and double-) are escaped before writing the description in my mysql database.

    as a consequence I have nasty escape characters in my copyright information.
    How can I get rid of those escape-things?

    (I tried to turn of magic quotes on my webhosts php.ini, but somehow this didn't have any effect.)

    Any idea?

    I would really be glad to hear so.

    Thx & cheers

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. nr2012
    Member
    Posted 2 years ago #

    I now just added the php-code:

    stripslashes($mydescriptionstring)

    worked allright, but probably isn't the best solution....

    ciao

  3. teplitz
    Member
    Posted 2 years ago #

    Into which php file did you add the stripslashes function? What I have found is that if you use " it's fine until you edit the gallery again, then it reverts to \". If you use " it's fine until you edit the gallery then it becomes a space.

    Thanks.

  4. teplitz
    Member
    Posted 2 years ago #

    Wow, it strips it out here too!

    What I have found is that if you use &-#34-; it's fine until you edit the gallery again, then it reverts to \". If you use &-quot-; it's fine until you edit the gallery then it turns into a space.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic