htmlparser2 demo
hyntax parser demo
In Hyntax, we can get the detailed information of the attribute (startIndex, etc.), but htmlparser2 simply outputs the key-value
Will htmlparser2 support this feature in the future?
#929 makes it possible to track attribute indices. You will have to provide a custom handler to actually store this; have a look at https://github.com/fb55/domhandler/blob/master/src/index.ts for the current handler implementation. You can extend the current handler class, with an updated onattribute
method that sets indices as expected.
Owner Name | fb55 |
Repo Name | htmlparser2 |
Full Name | fb55/htmlparser2 |
Language | TypeScript |
Created Date | 2011-08-27 |
Updated Date | 2023-03-19 |
Star Count | 3793 |
Watcher Count | 50 |
Fork Count | 370 |
Issue Count | 4 |
Issue Title | Created Date | Updated Date |
---|