Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode entities without semicolon when permissible #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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