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

Avoid &amp in ng-select drop down in angular 7 #979

Open
sabbirbiam opened this issue Mar 5, 2019 · 1 comment
Open

Avoid &amp in ng-select drop down in angular 7 #979

sabbirbiam opened this issue Mar 5, 2019 · 1 comment

Comments

@sabbirbiam
Copy link

I have using ng-select. In the time of using ng-option when it gets "&," it adds "amp;". How can I resolve this?
Here is the code in the
https://stackblitz.com/edit/ng-select-i19fsr?file=app/app.component.ts

@thepaulstory
Copy link

In HTML the ampersands is a protected char. You will need to encode/decode it.

https://mrcoles.com/blog/how-use-amersands-html-encode/
https://www.web2generators.com/html-based-tools/online-html-entities-encoder-and-decoder

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