title: How to add html_entity_decode to array?
body: <p>I am making a content entry with TinyMCE in codeigniter.
  However the output source is like the following and does not show &lt; and >. Instead it shows HTML enties like &lessthan; and &greaterthan;  etc. </p>
  
  <p>The entry is made by admin after logged in. </p>
  
  <p>Output comes from database.</p>
  
  <p>I took out escape in model, but it still does the same thing.</p>
  
  <p>Also I have a config setting, $config['global_xss_filtering'] = FALSE;</p>
  
  <p>So I want to add html_entity_decode. But the $page_data is an array. 
  The array has id, title, content and slug which is used for page item.</p>
  
  <p>Could anyone tell me how to do it please?</p>
  
  <hr>
  
  <p>Output example:</p>
  
  <pre><code>&amp;lt;p&amp;gt;&amp;lt;img src=&amp;quot;images/icon1.png&amp;quot; border=&amp;quot;0&amp;quot;
  alt=&amp;quot;icon&amp;quot; width=&amp;quot;48&amp;quot; height=&amp;quot;48&amp;quot; /&amp;gt;
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  </code></pre>
  
  <hr>
  
  <p>Model code:</p>
  
  <pre><code>&lt;?php
  
  class Pagemodel extends Model 
  {
  ....
  ...
  
  /** 
  * Return an array of a page — used in the front end
  *
  * @access public
  * @param string
  * @return array
  */
  function fetch($slug)
  {
      $query = $this-&gt;db-&gt;query("SELECT * FROM `pages` WHERE `slug` = '$slug'");
      return $query-&gt;result_array();
  }
  
  
  ...
  ...
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>Controller code:</p>
  
  <pre><code>function index()
  {
      $page_slug = $this-&gt;uri-&gt;segment('2'); // Grab the URI segment
  
      if($page_slug === FALSE)
      {
          $page_slug = 'home';
      }
  
  $page_data = $this-&gt;pages-&gt;fetch($page_slug); // Pull the page data from the database
  
      if($page_data === FALSE)
      {
          show_404(); // Show a 404 if no page exists
      }
      else
      {
          $this-&gt;_view('index', $page_data[0]);
      }
  }
  </code></pre>