RemexHtml is a parser for HTML 5, written in PHP.
RemexHtml aims to be:
RemexHtml contains the following modules:
RemexHtml presently lacks:
RemexHtml aims to be compliant with W3C recommendation HTML 5.1, except for minor backported bugfixes. We chose to implement the W3C standard rather than the latest WHATWG draft because our application needs stability more than feature completeness.
RemexHtml passes all html5lib tests, except for parse error counts and tests which reference a future version of the standard.
WARNING This is a new project, we are still developing use cases. So the API is subject to change.
For example code, see bin/test.php
.