Hi, We have a requirement to highlight text. We have autoselect box which displays a list based on value typed into the input field.
We are using ng-bind-html to bind the model which will have html text in it. It works fine as expected as we are adding a <span class="highlight"></span> to highlight the selected text. As this is a legacy system and there are still chances that the data in this model may have <script><input> and other tags, in case some body may have added. The problem with ng-bind-angular is that it still allows input tag to be processed. It removes Script and onClick etc things, but if I add any HTML element in the text then it process it and the text box is displayed in the drop down list. So is there any way, we can show HTML content without using ng-bind-html. Let me know any thoughts guys. Regards, Mahesh Kulkarni -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
