WYSIWYG editor and loaded content trouble

I have a wysiwyg editor ckeditor. It has a textarea. Okay, everything works fine, but until I'm trying to load content which already has inputs elements (textarea). So, we have:

<textarea id="ckeditor">
   ... Loadable content ...
  <textarea id="some_other"></textarea>
</textarea>

As you see loadable textarea is closing ckeditor-area, and another content is outside editor. Any suggestions to make another textarea in my ckeditor-area?

13.10.2009 17:35:09
1 ОТВЕТ
РЕШЕНИЕ

Escape it:

<textarea>...&lt;/textarea&gt;...</textarea>

There are functions for that in every language, e.g. htmlspecialchars in PHP.

0
13.10.2009 17:39:14