title: PHP Tidy & closing tags query
body: <p>I'm just curious as to why this works:</p>
  
  <pre><code>$config = array('wrap' =&gt; 0,'show-body-only' =&gt; TRUE,);
  
  $str = '&lt;p&gt;Hello World!';
  
  $tidy = tidy_parse_string($str, $config);
  tidy_clean_repair($tidy);
  echo (htmlentities($tidy)); //outputs &lt;p&gt;Hello World!&lt;/p&gt; 
  </code></pre>
  
  <p>while this doesn't:</p>
  
  <pre><code>$config = array('wrap' =&gt; 0,'show-body-only' =&gt; TRUE,);
  
  $str = 'Hello World!&lt;/p&gt;';
  
  $tidy = tidy_parse_string($str, $config);
  tidy_clean_repair($tidy);
  echo (htmlentities($tidy)); //outputs Hello World! 
  </code></pre>