diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -38,8 +38,11 @@ $html = <<< 'HERE' </html> HERE; +// Create a new HTML5 parser. +$html5 = new HTML5(); + // Parse the document. $dom is a DOMDocument. -$dom = HTML5::parse($html); +$dom = $html5->loadHTML($html); // Render it as HTML5: print HTML5::saveHTML($dom); |