TinyMCE escapes some especial characters -


when, example, write html tinymce:

<p>asdasd</p> <p class="relevant">asd</p> <p>as</p> 

the php receives form post prints next:

<p>asdasd</p> <p class=\"relevant\">asd</p> <p>as</p> 

how can turn off behavior?

thank in advance

this due magicquotes feature in php , covered in tinymce faq.

the simplest way deal disable feature, has been deprecated of php 5.3.0

an alternative clean results using

stripslashes($_post['text']);  

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -