title: How to store HTML in a PHP array
body: <p>I'm trying to figure out how to store HTML into an array in PHP so that I can than pass it to json_enocde. When I try:</p>
  
  <pre><code>$page_data = array();
  $page_data['title'] = "This is a test";
  $page_data['content'] = &lt;page content&gt;; // &lt;page content&gt; is just a placeholder
  
  print_r($page_data);
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Array
  (
      [title] =&gt; This is a test
      [content] =&gt; 
  )
  &lt;page_content&gt;
  </code></pre>
  
  <p>Any ideas how to fix this. I'm guessing it has something to do with quotes messing things up but I've tried using addslashes and such and nothing seems to resolve the issue.</p>