$html = $modx->documentOutput; // evolution syntax // tidy $tidy = tidy_parse_string($html); $tidy->cleanRepair(); return $tidy->errorBuffer;
$modx->documentOutput = $modx->documentOutput.'<!-- '.$site_copyright.' '.date("Y").' --> ';
$modx->resource->_output = $modx->resource->_output.'<!-- '.$site_copyright.' '.date("Y").' --> ';