Skip to content

fix: suppress entities inside skipped content - #22

Merged
k3a merged 1 commit into
k3a:masterfrom
bensynapse:fix-suppressed-entities
Oct 12, 2026
Merged

k3a merged 1 commit into
k3a:masterfrom
bensynapse:fix-suppressed-entities

Conversation

@bensynapse

Copy link
Copy Markdown
Contributor

I run Live Tennis API.

Decoded entities bypassed the content suppression stack. A title containing &A produced &A before the body text. Anchor labels leaked in the default link mode too.

The entity branch now checks the same stack as ordinary text. Added cases cover head, script, style and anchor text in both link modes. Visible text and href entities still decode.

All 233 assertions pass. go test ./... -coverprofile=cover.out -covermode=atomic reports 100% statement coverage. Vet, build and formatting checks pass on Go 1.16.15 and 1.23.4. go test -race -v ./... passes on 1.23.4. Both new test groups fail against the original source.

@k3a
k3a merged commit a885040 into k3a:master Oct 12, 2026
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.

2 participants