title: How do you make HTML run instead of show html commands from a database?
body: <p>I am using nicEdit.js and it saves to the database like this:</p>
  
  <pre><code>&lt;div align="center"&gt;&lt;i&gt;test&lt;/i&gt;&lt;br&gt;&lt;/div&gt;&lt;u&gt;&lt;br&gt;&lt;font size="5"&gt;&lt;b&gt;Become part of our team!&lt;/b&gt;&lt;/font&gt;&lt;br&gt;&lt;/u&gt;
  </code></pre>
  
  <p>From the database I retrieve it as $jobfulldesc.</p>
  
  <p>This will show it correctly:</p>
  
  <pre><code>&lt;?php
  function unhtmlentities ($string) {
    $trans_tbl =get_html_translation_table (HTML_ENTITIES );
    $trans_tbl =array_flip ($trans_tbl );
    return strtr ($string ,$trans_tbl );
  }
  echo unhtmlentities($jobfulldesc); ?&gt;
  </code></pre>
  
  <p>That just doesn't work if you try to add nicEdit into your javascript:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    bkLib.onDomLoaded(function() {
        var myNicEditor = new nicEditor();
        myNicEditor.setPanel('myInstance1');
  
   });
  &lt;/script&gt;
  &lt;div id="myInstance1"&gt;&lt;?php echo unhtmlentities($jobfulldesc); ?&gt;&lt;/div&gt;
  </code></pre>
  
  <p>or inside of:</p>
  
  <pre><code>&lt;textarea&gt;&lt;?php echo unhtmlentities($jobfulldesc); ?&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>How do you make it be seen without the format of HTML inside of nicEdit from the database?</p>