title: How to remove HTML tags in PDF?
body: <p>How to remove the HTML tags?</p>
  
  <p>I want to remove the HTML tags in the PDF view. Look at the picture below. Please help me with this.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$string1 = $_POST["editor1"];
  $string1 = str_replace("&lt;p&gt;", "", $string1);
  $string2 = str_replace("&amp;nbsp; ", " ", $string1);
  $string2 = explode("&lt;/p&gt;", $string1);
  </code></pre>
  
  <p>This is my output:</p>
  
  <pre><code>foreach ($string2 as $key) {
      $pdf-&gt;Multicell(0,3,$key);
  }
  
  ?&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8B2p8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8B2p8.jpg" alt="my pdf file"></a></p>