title: CKEDITOR Using getData()
body: <p>How to get CKEDITOR first two <code>&lt;p&gt;</code> tag value using getData() method.</p>
  
  <pre><code> var myContent = CKEDITOR.instances.Abody.getData();
  </code></pre>
  
  <p>output</p>
  
  <pre><code>&lt;h1&gt;title&lt;/h1&gt; &lt;p&gt;paragraph 1&lt;/p&gt; &lt;p&gt;paragraph 2&lt;/p&gt;
  </code></pre>
  
  <p>But i need this <code>&lt;p&gt;</code> tag values like this.</p>
  
  <pre><code>var ph1 = paragraph 1
  var ph2 = paragraph 2
  </code></pre>