Monday 30 June 2003 5:34:19 am
in file: kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinput.php in function &convertInput I've replaced the lines:
// Convert headers $text =& preg_replace( "#<header>#", "<header level='1'>", $text ); With
//remove everything in <head></head> $text =& preg_replace( "#<head(\s|>)+.*</head(\s|>)#", "", $text );
//remove <HTML> tags
$text =& preg_replace( "#</?html[^>]*>#", "", $text );
//remove body tags
$text =& preg_replace( "#</?body[^>]*>#", "", $text );
// Convert headers
$text =& preg_replace( "#<header>#", "<header level='1'>", $text );
$text =& preg_replace( "#<\s*h([0-9])[^>]*>#", "<header level='$1'>", $text ); $text =& preg_replace( "#</h([0-9])[^>]*>#", "</header>", $text ); Which makes eZPub better at handling a html copy/paste job
|