Skip to content

Conversation

txsentinel
Copy link

Merged Pull Requests:
#365 : AndroidUnescapedHandler respects CDATA sections

deathbird added 2 commits June 2, 2025 18:22
We fix AndroidUnescapedHandler to respect (leave untouched) CDATA
sections:

1. New method _process_with_cdata_preservation(): A utility method
   that processes text while preserving CDATA sections.
2. Modified escape() method: Now uses CDATA preservation when
   escaping text.
3. Modified unescape() method: Now uses CDATA preservation when
   unescaping text.
4. CDATA-specific behavior: CDATA sections are preserved but quotes
   within them are still escaped/unescaped for consistency.
AndroidUnescapedHandler respects CDATA sections
@txsentinel txsentinel merged commit 26f3d32 into master Jun 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants