title: How to convert HTML into XHTML
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/768923/php-library-for-converting-html4-to-xhtml">PHP library for converting HTML4 to XHTML?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there any ready made function in PHP to achieve this? Basically I'm taking HTML data from Smarty template and want to convert it into XHTML through coding.</p>