#36499: strip_tags() fails with patched Python versions due to HTMLParser EOF
behavior change
-------------------------------------+-------------------------------------
Reporter: MeggyCal | Owner: Natalia
| Bidart
Type: Bug | Status: assigned
Component: Utilities | Version: 5.2
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):
* owner: (none) => Natalia Bidart
* severity: Normal => Release blocker
* status: new => assigned
Comment:
We are also seeing the failures in our scheduled tests CI but only when
using Python 3.14
([
https://github.com/django/django/actions/runs/16257114450/job/45895218381
example]). I have also reproduced locally with Python 3.14 beta 4.
The changes in Python were driven by a security report started by the
Django Security Team, following up some private reports we got. I think we
need to update the tests and stick as much as possible to the Python's
`HTMLParser` behavior. Also, we need to backport this to the supported
stable branches, so I'll mark it as release blocker.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36499#comment:3>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.