The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. moroshko
    Posted 4 years 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