/** * compare two HTML strings * * @param string original content * @param string updated content * @return an ASCII string */ public static function &hdiff(&$original, &$updated) { global $context; // preserve HTML tags $old_tokens = Scripts::hbreak($original); $new_tokens = Scripts::hbreak($updated); // do the job $output =& Scripts::sdiff($old_tokens, $new_tokens); return $output; }