WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] update_uption - single quote backslash added (4 posts)

  1. christian_gnoth
    Member
    Posted 3 years ago #

    in a plugin I am saving text input fields (textarea) with a update_option function.

    If a single quotes is in the text it gets an backslash in front. I am saving the text with htmlentities($text, ENT_QUOTES)m but still it gets always an backslash added. So the string becomes with each save longer.

    Any idea, why?

  2. christian_gnoth
    Member
    Posted 3 years ago #

    has anyone a similiar problem with single quotes in text saved as wordpress option with add_option, update_option or get_option????

  3. christian_gnoth
    Member
    Posted 3 years ago #

    ???

  4. christian_gnoth
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic