Lazy HTML parser for PHP
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
yawn.php

README.md

#Yawn# ##A lazy HTML parser for PHP##

Yawn is designed to be a very fast, lightweight HTML parser which also benefits from lazy evaluation. This means it only parses HTML as you need it.

Yawn isn't designed for HTML validation, in fact HTML validation requires complete parsing, which removes all the benefit from lazy evaluation.

If you want to validate HTML, I suggest using one of the many existing parsers like PHP's DOM or HTML Tidy.

##Issues##

  • Can't parse text nodes at the end of the tree