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
    Possible duplicate of [angularjs + cross-site scripting preventing](http://stackoverflow.com/questions/23007807/angularjs-cross-site-scripting-preventing) – SilverlightFox Sep 26 '16 at 13:27

0 Answers0