2

In my application i have a search textbox which uses two way binding (ng-model). As soon as i append following script as a search keyword, it starts executing it. i find an Alert message pop up. If this can be resolved using $sanitize, can you give me a simple example how can i use it and what is $sce is? I refereed Angularjs official doc for $sanitize but that is extremely confusing to understand.

 <script> alert("Hi") </script> 

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.