Alir3z4 / html2text

Convert HTML to Markdown-formatted text.
alir3z4.github.io/html2text/
GNU General Public License v3.0
1.85k stars 279 forks source link

Fix invalid character reference parsing #429

Open andersk opened 2 weeks ago

andersk commented 2 weeks ago

https://html.spec.whatwg.org/multipage/parsing.html#character-reference-code

codecov[bot] commented 2 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.45%. Comparing base (8917f5c) to head (58028ec).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #429 +/- ## ========================================== + Coverage 97.36% 97.45% +0.09% ========================================== Files 11 11 Lines 1137 1138 +1 ========================================== + Hits 1107 1109 +2 + Misses 30 29 -1 ``` | [Flag](https://app.codecov.io/gh/Alir3z4/html2text/pull/429/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alireza+Savand) | Coverage Δ | | |---|---|---| | [unittests-3.10](https://app.codecov.io/gh/Alir3z4/html2text/pull/429/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alireza+Savand) | `97.45% <100.00%> (+0.09%)` | :arrow_up: | | [unittests-3.11](https://app.codecov.io/gh/Alir3z4/html2text/pull/429/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alireza+Savand) | `97.45% <100.00%> (+0.09%)` | :arrow_up: | | [unittests-3.12](https://app.codecov.io/gh/Alir3z4/html2text/pull/429/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alireza+Savand) | `97.45% <100.00%> (+0.09%)` | :arrow_up: | | [unittests-3.8](https://app.codecov.io/gh/Alir3z4/html2text/pull/429/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alireza+Savand) | `97.45% <100.00%> (+0.09%)` | :arrow_up: | | [unittests-3.9](https://app.codecov.io/gh/Alir3z4/html2text/pull/429/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alireza+Savand) | `97.45% <100.00%> (+0.09%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alireza+Savand#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.