Closed cheerfulstoic closed 4 years ago
@cheerfulstoic Thank you for opening the issue!
I'm going to take a look. It seems that is related to the replace of mochiweb's charref
code here: https://github.com/philss/floki/commit/1198b834f13426b3d8d91f76c5dfbadcc2d94f9d#diff-351de3e8b879ad69ad9c165ca6d8ae9dR705
It is also related to #235
@cheerfulstoic It was fixed in version 0.23.1. Can you try again with that version?
Description
It seems like (as far as I can tell), having an HTML entity in a URL's query parameter value for a link breaks the parser starting with floki 0.23.0. This might also happen in other circumstances. This might not be valid HTML, but I did run into it in the wild and it's probably not great that the parser crashes, especially when it worked previously.
To Reproduce
Steps to reproduce the behavior:
Using:
When I try to parse this HTML:
... in floki 0.23.0 I get this error:
Expected behavior
With 0.22.0 I get the parsed result as expected:
Standard Thanks
Thanks so much for floki!