WordPress.org

Ready to get started?Download WordPress

Forums

How to unescape the results when using $wpdb->get_results? (1 post)

  1. moroshko
    Member
    Posted 1 year ago #

    To add a new rows to the database I use $wpdb->insert, and to get the rows I use $wpdb->get_results.

    The problem is that $wpdb->insert seems to be escaping the input. For example, a"b is saved as a\"b in the database. But, $wpdb->get_results doesn't seem to unescape back a\"b to a"b.

    Is this the correct behavior by design?

    Should I unescape the result of $wpdb->get_results manually? (What is the proper function for this?)

Topic Closed

This topic has been closed to new replies.

About this Topic