Skip to content

Conversation

Zyie
Copy link
Member

@Zyie Zyie commented Jul 8, 2025

Fixes: #10638

Ensures HTML text renders correctly even with incomplete or malformed tags.

We now sanitizes text to replace common HTML tags (like in v7) plus we also check for incomplete tags and remove them if needed.

Adds a visual test to verify the fix.

Ensures HTML text renders correctly even with incomplete or malformed tags.

The text is now parsed by the DOM before being injected into the SVG, which allows the browser to correct minor HTML errors.

Also sanitizes text to replace common HTML entities with their XML-compatible equivalents.

Adds a visual test to verify the fix.
Copy link

codesandbox-ci bot commented Jul 8, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7b6863c:

Sandbox Source
pixi.js-sandbox Configuration

@Zyie Zyie marked this pull request as draft July 8, 2025 07:54
@Zyie Zyie marked this pull request as ready for review July 8, 2025 08:14
@Zyie Zyie added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label Jul 16, 2025
@Zyie Zyie added this pull request to the merge queue Jul 17, 2025
Merged via the queue into dev with commit dd5e709 Jul 17, 2025
6 checks passed
@Zyie Zyie deleted the fix/html-tags branch July 17, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Difference between v7 and v8 and invalid HTML Text
2 participants