title: An alternative to php tidy?
body: <p>I use php tidy to process html input in my database, </p>
  
  <pre><code>$fragment = tidy_repair_string($dom-&gt;saveHTML(), array('output-xhtml'=&gt;1,'show-body-only'=&gt;1));
  </code></pre>
  
  <p>I have this php_tidy turned on in my server but my live server doesn't support tidy,</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined function tidy_repair_string() in
    /customers/0/5/a/mysite.com/httpd.www/models/functions.php on line 587</p>
  </blockquote>
  
  <p>Any alternative can I have to fix this problem?</p>