I'm having some troubles with a extra feature i'm writing for my theme.
The admin should be able to make some special posts, those posts are stored as an option. The options are atored as an array and WP makes it's own json for arrays.
So, the user has a wp_editor(), and the array stored looks something like this:
array( 'title' => 'My title', 'content' => 'Look at my cat! <img src="mycat.jpg" />', //Generated by wp-editor 'signature' => 'My name' );
The thing is, when an image is added to this content, the image string is quite badly escaped. When i'm trying to get this content i get it as
<img src="\"mycat.jpg\"" />
<img src="mycat.jpg" />
How can i store content like this in the wp-options table so i can get it right when i try to get the content?