Escaping (tag)

wp_unslash()

Removes slashes from a string or from strings of an array, or properties of an object. The array can be of any nesting level.

wpdb::_escape()

Escapes a string or array value for use in an SQL query.

wpdb::_real_escape()

Escapes a string for safe insertion into an SQL query using mysqli_real_escape_string().