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
Consider adding the HTML entities from w3scools #5546
Comments
@Tragetaschen could you provide a plunk that demonstrates the error? How about sending a PR to fix this? :) |
Whoops, I just realized the error message actually contains the hint… |
Going through my application, I stumble upon more occurrences. This is a rather frustrating uphill battle :-/ Plunkr: http://plnkr.co/edit/aWRgOIg6cGhrgeXVxcut?p=preview I really get the argument for keeping the list and thus the file size small, but I also have to tell my web designer colleague that he cannot use the HTML entities he knows. |
Correct:
says that you need to use either the decimal or hexadecimal representation of the html entity. I'm sure there's a reason why alphabetic representations aren't supported. Angular has now its own HTML parser, maybe this is to support more entities instead of maintaining all possible alphabetic version. Maybe @vsavkin can tell what the reasoning is. |
I just had that problem too. I understand that this looks to be a feature and not a bug, but it is very disappointing. Angular is supposed to be "HTML enhanced for web apps!", and this clearly does not enhance HTML. Not only So, I just hope this is a temporary limitation, and not a final feature. Can anyone from the team confirm? |
The reasoning is that we want to keep the parser size reasonable. The table of all entities would probably be bigger than the parser itself. That being said, we are open to adding the most common ones. |
Awesome, this is what i wanted to suggest 👍 And as soon as we gain offline compilation super-powers the parser size will be less of a concern |
Yes, sounds very good to me too! Although "most common ones" can be very relative to everyone. How can we get stats about this? |
I'm creating a list based on wikipedia + some other sources, hopefully it will be good enough. |
Yay! I skimmed through the list and found the entities I missed before. |
…ular#5546 TODO: - fixed in alpha-48, revert again when upgrading to alpha-48+
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I picked up 2.0.0-alpha.47 and immediately stumbled over en exception that
©
was an unknown entity, but w3scools as the top link of a search contained that entity.Consider adding at least those entities from w3schools to the list
The text was updated successfully, but these errors were encountered: