Textarea including another textarea



I tried to create an instance of Codemirror editor using a textarea containing html/js/php code in its value. This code contains itself a textarea.

The codemirror editor then stop parsing of the wrapping textarea node at the first (which is IN the value, not the last one).

Is there any way to bypass this particular case?

Thank’s a lot


This has nothing to do with CodeMirror, it’s just that when your textarea contains the string </textarea>, the browser’s HTML parser will close the textarea at that point.


Yes you’re totally right!

Thank’s a lot