(.*)<\/p>.*
(.*)<\/p>.*
(.*)<\/p>.*
.* true,
'drop-proprietary-atrributes' => true,
'output-xhtml' => true,
'indent' => true,
'show-body-only' => true);
$tidy = new tidy();
$tidy->parseString($matches[7], $tidy_config);
$tidy->cleanRepair();
mysql_query('INSERT INTO import_nodes SET
tid = ' . $tid . ',
uid = 1,
created = ' . $time . ',
short = \'' . mysql_real_escape_string(trim($matches[5])) . '\',
text = \'' . mysql_real_escape_string($tidy) . '\'', $db);
echo mysql_error();
}
else {
echo 'error occured!';
}
?>