the reg ex on this line:
$items = preg_split('/<h(.*)>/U', $node->body, -1, PREG_SPLIT_DELIM_CAPTURE );
should be <h(\d*)> to avoid problems with xml documents containing tags like
<header>.
the reg ex on this line:
$items = preg_split('/<h(.*)>/U', $node->body, -1, PREG_SPLIT_DELIM_CAPTURE );
should be <h(\d*)> to avoid problems with xml documents containing tags like
<header>.
Comments
Comment #1
karens commentedThat change completely broke the processing of the pages, so I won't be committing it.