Hey!
I'm loading a template into the ckeditor at runtime (javascript) with the setData method.
I experience major problems when the data contains a "</script>" tag (which is possible in html files).
Whenever it contains "</script>" it breaks my whole javascript code because it closes my opening <script type="text/javascript"> and just outputs the remaining js-code as plain text...
This is really annoying and was pretty unexpected since it's called using quotes.
Go ahead and try it yourself.
It will break your whole js!!
Does anyone know a workaround?
I'm loading a template into the ckeditor at runtime (javascript) with the setData method.
I experience major problems when the data contains a "</script>" tag (which is possible in html files).
Whenever it contains "</script>" it breaks my whole javascript code because it closes my opening <script type="text/javascript"> and just outputs the remaining js-code as plain text...
This is really annoying and was pretty unexpected since it's called using quotes.
Go ahead and try it yourself.
this.setData('</script>');
It will break your whole js!!
Does anyone know a workaround?