Skip to content

Instantly share code, notes, and snippets.

@sanguis
Created May 21, 2012 20:55
Show Gist options
  • Save sanguis/2764624 to your computer and use it in GitHub Desktop.
Save sanguis/2764624 to your computer and use it in GitHub Desktop.
tidy settings that I found work best for feeds_xpathparser
<?php
$tidyConfig = array(
'merge-divs' => FALSE,
'merge-spans' => FALSE,
'join-styles' => FALSE,
'drop-empty-paras' => TRUE,
'wrap' => 0,
'tidy-mark' => FALSE,
'escape-cdata' => TRUE,
'word-2000' => TRUE,
'hide-comments' => TRUE,
'output-xhtml' => TRUE,
// 'quote-nbsp' => 0,
'clean' => TRUE,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment