Quick and Dirty, and yet Tidy

I just got the title from the source, read it yourself :)

This options worked for me! I’ve been having trouble trying tidy on my CMS. But it only renders tidy’ed the content inside <body> and worst, everything outside it are stripped off – no title, and meta’s neither opening and closing html

$config = array(
  'indent'      => true,
  'output-xml'  => true,
  'input-xml'   => true,
  'wrap'        => '1000'
);

For detailed options and their uses, look at their quickref

One thought on “Quick and Dirty, and yet Tidy

  1. Pingback: superdrupermegapuper54321

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">