vendredi 26 décembre 2014

wp editor formatting

I am writing a plugin and have this code:



$settings = array("media_buttons" => false, "wpautop" => false, "teeny" => true);
wp_editor("", "viddesc", $settings);


The problem is when I paste this in wp editor:



<span class='infoTitle'>Nulla mauris justo</span>


And save it, it becomes this:



<p>&lt;span class='infoTitle'&gt;Nulla mauris justo&lt;/span&gt;</p>


Is there a away to avoid adding p tags and converting <> characters?


Thank you.


Aucun commentaire:

Enregistrer un commentaire