note 94072 deleted from function.preg-match-all by thiago
| From: | thiago@php.net | Date: | Thu, 15 Oct 2009 10:46:34 +0000 |
| Subject: | note 94072 deleted from function.preg-match-all by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161758@lists.php.net to get a copy of this message | ||
Note Submitter: Michiel (Ict4schools B.V.)
----
Generating a Table of Contents from HTML (with h1,h2,h3) using preg_match_all and preg_replace, I
did the following:
- First give every header an unique ID (because we are using PrinceXML) and is a good pratice.
- Then create an OL/LI structure of it, although that piece of code can contain bugs.
See: http://pastie.org/655728