I'm having trouble with inserting a string which is containing quotation marks in wordpress via wpdb.
I've written a hook for save_post and trying to write the post_title in a table via wpdp->update.
String is taken straight from the $_POST array. Unfortunatly, in the db the string is saved with escaped quotation marks.
this is "the" example will become -> this is \"the\" example printed out in html.
How can I prevent this?
Code looks like this:
$data = array( 'post_content' => $new_content,
'post_title' => $new_title);
$wpdb->update('wp_'.$blog_id.'_posts', $data, array('ID' => $post_id));