Skip to content

fix: #183 fix text escaping for style element content in xmlwriter#185

Merged
noahbald merged 1 commit intomainfrom
fix/183-xmlwriter-style-text-escaping
Nov 19, 2025
Merged

fix: #183 fix text escaping for style element content in xmlwriter#185
noahbald merged 1 commit intomainfrom
fix/183-xmlwriter-style-text-escaping

Conversation

@noahbald
Copy link
Owner

Description

This PR updates serialization of the text-content of <style> elements, which should match the HTML spec.

Motivation and Context

  • Escaping style content can cause the content to become invalid CSS

How Has This Been Tested?

  • Unit tests

Types of changes

Fixes

  • Updated xmlwriter to print style content as unescaped character data

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@noahbald noahbald self-assigned this Nov 19, 2025
@noahbald noahbald merged commit 64b4e32 into main Nov 19, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant