Skip to content

Conversation

yulia-che
Copy link

I quite often run into deprecated html entities that don't contain trailing semicolon. I'm attaching a pr with respect to HTML 4 specification regarding character references:

Note. In SGML, it is possible to eliminate the final ";" after a character reference in some cases (e.g., at a line break or immediately before a tag). In other circumstances it may not be eliminated (e.g., in the middle of a word). We strongly suggest using the ";" in all cases to avoid problems with user agents that require this character to be present.

That is an entity would be decoded only if immediately followed by a newline character or an opening angle bracket.

@threedaymonk threedaymonk deleted the branch threedaymonk:master October 16, 2025 14:07
@threedaymonk
Copy link
Owner

Sorry, I didn't realise that renaming my main branch would close this, but even though it's 8 years later I like it and I'm going to merge it!

@threedaymonk
Copy link
Owner

Merged in 8b59e81.

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