title: loading database content into textarea with ckeditor
body: <p>I've incorporated CKEDITOR to my website. I want it to load the content from the database so it can be edited. I can save data with ease from the editor to the database, using ajax. however when the editor firsts loads I get an error in my chrome console:</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token ILLEGAL</p>
  </blockquote>
  
  <p>It points me to a place in my jQuery code:</p>
  
  <p><img src="https://i.stack.imgur.com/hcRfG.jpg" alt="enter image description here"></p>
  
  <pre><code>contentEditor.append('&lt;div class="content-top-container"&gt;&lt;div class="course-name"&gt;&lt;div class="section-title"&gt;Title: &lt;?php echo $this-&gt;section_title; ?&gt;&lt;/div&gt;&lt;img id="close-&lt;?=$this-&gt;c_id;?&gt;&lt;?php echo $this-&gt;section_num; ?&gt;" class="close-editor" src="../skins/blues/images/red-ex.png" title="Close" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;textarea class="editor-area" id="&lt;?php echo $this-&gt;c_id; ?&gt;-&lt;?php echo $this-&gt;section_num; ?&gt;-editor" name="&lt;?php echo $this-&gt;section_num; ?&gt;-editor"&gt;'+innerTextArea+'&lt;/textarea&gt;');
      CKEDITOR.replace('&lt;?php echo $this-&gt;c_id; ?&gt;-&lt;?php echo $this-&gt;section_num; ?&gt;-editor', {
          toolbar : 'Full',
          width : "1020px"
      });
  </code></pre>
  
  <p>Data is being stored as HTML in the database. What I believe is happening is that the string that is coming back from the database is to long and Javascript is throwing a syntax error. How can I fix this? I have little experience with CKEditor... thanks in advance!</p>