title: result of get_the_content() not correctly displayed
body: <p>I have a javascript function that creates an array and fill it with the title and content of Wordpress posts. In other words, I  try to put the result of <code>get_the_content()</code> and <code>get_the_title()</code> in a javascrip array using the loop, and display them in a separate div. 
  The problem is that the result of get_the_content() dont appear in the div. not like with get_the_excerpt() or get_the_title() which both of them are correctly stored in javascript variable and correctly displayed in the div after onclick event.</p>
  
  <p>The code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  function initialize(str) {
  
  &lt;? echo 'var topics = [';?&gt;
  &lt;?php if (have_posts()) : ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;    
  
  &lt;?php $title=get_the_title();?&gt;
  
  &lt;?php 
  echo "['";
  echo $title;
  echo "',";
  $content=get_the_content();
  echo $content;
  echo "],";  ?&gt;
  
  &lt;?php endwhile; ?&gt;
  &lt;?php endif; ?&gt;
  
  &lt;?php echo '];'; ?&gt;  
  
  for (i = 0; i &lt; topics.length; i++) 
  { 
  if(topics[i][0]==str) {
  document.getElementById("id").innerHTML = locationsmee[i][1];   
              }
  
  }
  </code></pre>
  
  <p>Thanks in advance</p>