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

characters following an ampersand are removed if it is not encoded prior to parsing #78

Closed
mattbucci opened this issue Mar 5, 2015 · 2 comments

Comments

@mattbucci
Copy link

noticed an issue on our site today.

we had the characters R&D in our html. Obviously this should be R &a mp; D to be accurate, however when html5-php parses this, it parses it to R&

I'm assuming this is because &D isn't an html entity so it defaults to the & I would have expected the output to be R &a mp; D though.

@mattfarina
Copy link
Member

I can reproduce this. It appears to be a problem in the entity parsing code.

@mattfarina
Copy link
Member

@mattbucci There is a fix on master. Please give this a try and let me know if there are any problems.

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

No branches or pull requests

2 participants