valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
676 stars 588 forks source link

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

Open sabbirbiam opened 5 years ago

sabbirbiam commented 5 years ago

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 commented 4 years ago

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