I have my textbox value set to its data using htmlentities
like:
<input type="text" value="<?php echo htmlentities('...');?>" />
The same I did for textarea:
<textarea><?php echo htmlentities('...');?></textarea>
It works fine until I convert the textarea to TinyMCE editor...
When I convert the textarea to TinyMCE editor all the things get crappy and shows the encoded html codes in text editor.
So what can be done to set encoded html data in TinyMCE?
You should not use htmlentities()
inside the editor.