I would like to use JavaScript to parse an html document in an abstract syntax tree, where each node also includes start and end lines (and, hopefully, also character positions) for each node. Are there any existing solutions that can do this? I do not want to write myself.
Edit April 24, 2016: Being able to parse HTML along with php tags in arbitrary places would be even more ideal.
source
share