How to convert html code in database to plain-text in fpdf output in PHP?
<p>I hate lengthy questions,but as i am <em>new to PHP</em> im writing full code.Please Bare me.
<br/>I'm trying to generate a <strong>Invoice in PHP in Xampp</strong> which contains "tinymce text editor" in the form ,which im using to edit content.
Here is the create.php page</p>

<pre><code>  &lt;script src='js/tinymce.min.js'&gt;&lt;/script&gt;
  &lt;script&gt;
  tinymce.init({
      selector: '#mytextarea',  
        plugins: [
                  'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker',
                  'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
                  'save table contextmenu directionality emoticons template paste textcolor'
                ],

      a_plugin_option: true,
      a_configuration_option: 400
    });

  &lt;/script&gt;
</code></pre>

<p>The content i am editing in Editor is a table with nxn cells, but the data <strong><em>is saving in the database in HTML code.</em></strong></p>

<pre><code>&lt;table&gt;
   &lt;tbody&gt;
       &lt;tr&gt;
        &lt;td&gt;Sl.NO&lt;/td&gt;
        &lt;td&gt;Some Text&lt;/td&gt;
        &lt;td&gt;Some more TExt&lt;/td&gt;
        &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;1&lt;/td&gt;
        &lt;td&gt;Some Text&lt;/td&gt;
        &lt;td&gt;Some more TExt&lt;/td&gt;
        &lt;/tr&gt;
        &lt;/tbody&gt;
        &lt;/table&gt;
</code></pre>

<p>when i am retrieving the data into read.php,Output is coming as expected.
<a href="https://s3.amazonaws.com/uploads.hipchat.com/202528/3243661/335hT5kCWBAoT5F/Captured.JPG" rel="nofollow">Image of read.php</a></p>

<p>But when im generating the page into pdf using fpdf, the output is like this,
<a href="https://s3.amazonaws.com/uploads.hipchat.com/202528/3243661/Y5Ezg3wpPpy6BTP/Captured2.JPG" rel="nofollow">not as expected</a></p>

<p>I tried both html_entity_decode and strip_tags also <code>html_entity_decode(strip_tags($data['content']))</code>  </p>

<p>I just want the pdf to be same as read.php.. Just help me,in what i need to concentrate to get what i want ,
Thanks in Advance.</p>