Skip to content

Commit 7a31131

Browse files
author
Emmanuel ROECKER
committed
add getsummarytree usage in readme
1 parent 3649e2f commit 7a31131

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ $dom = new GlHtml($html);
118118
$summary = $dom->getSummary();
119119

120120
echo $summary[0]->getNode()->getText() . ' ' . $summary[0]->getLevel();
121+
122+
/*
123+
extract html headings tree
124+
*/
125+
$summaryTree = $dom->getSummaryTree();
121126
```
122127

123128
## Running Tests

0 commit comments

Comments
 (0)