small problem with reg ex
munga - July 23, 2007 - 12:38
| Project: | HTML2Book |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
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>.
