cpython/Lib/html
Serhiy Storchaka 0cbbfc4621
gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665)
"] ]>" and "]] >" no longer end the CDATA section.

Make CDATA section parsing  context depending.
Add private method HTMLParser._set_support_cdata() to change the context.
If called with True, "<[CDATA[" starts a CDATA section which ends with "]]>".
If called with False, "<[CDATA[" starts a bogus comments which ends with ">".
2025-08-14 18:13:22 +00:00
..
__init__.py
entities.py
parser.py gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) 2025-08-14 18:13:22 +00:00