I am using wp_editor
in my plugin.
It is displayed on the page as:
<?php wp_editor(get_option('edpp_card_design'), 'edpp_card_design', array(
'textarea_name' => 'edpp[card_design]'
)); ?>
When I post the form it is returning invalid HTML, doing a print_r
on the posted data returns something that looks like this:
<span style="\"color:" #ff0000;\"=""><strong>Some Test School</strong></span>
Viewing it Text in the editor has it right at
<span style="color: #ff0000;"><strong>Some Test School</strong></span>
I don't get why this is happening, am I missing something? Is wp_editor
configured wrong here or should I be running the output through a function before I use it?