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

karens’s picture

Status: Active » Closed (won't fix)

That change completely broke the processing of the pages, so I won't be committing it.