mirror of
https://github.com/python/cpython.git
synced 2025-12-31 20:43:36 +00:00
"] ]>" 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 ">".
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| entities.py | ||
| parser.py | ||