function convert_html($lines, $noPara = FALSE) { global $vars, $digest; static $contents_id = 0; // Set digest $digest = md5(join('', get_source($vars['page']))); if (!is_array($lines)) { $lines = explode("\n", $lines); } $body = new Body(++$contents_id); $body->noPara = $noPara; $body->parse($lines); return $body->toString(); }