wp_editor adds HTML entities to the content

WordPress is running addslashes on POST input. The value you get from the data base looks probably like:

<img title=\"\" …

… and the editor tries to enforce valid markup from that.

So … call the editor with …

wp_editor( stripslashes( $content ), strtolower($value['id']), $settings );

Leave a Comment