As as title, how to prevent wp not to encode html in a post?
currently i just need to prevent '&' changed to
& The result need to be looks like on editor with html tab mode selected.
$content = $wpdb->get_row("SELECT post_content FROM $wpdb->posts WHERE ID=xxx"); $content = str_replace('amp;','',$content->post_content);//remove amp; $wpdb->query("UPDATE $wpdb->posts SET post_content = $content WHERE ID = xxx;");
and also how to implement content filter(prevent to encode some text) in collaboration with
but that code still encode the html.