How prevents html dom based cross site scripting (xss) attacks?



How prevents html dom based cross site scripting (xss) attacks?..

Answer / Saurabh Patel

HTML DOM based Cross-Site Scripting (XSS) attacks can be prevented in AngularJS by using the AngularJS sanitizer service to safely insert user-generated content into the HTML. The $sanitize service ensures that the content is safe to render and does not contain any potentially harmful scripts.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is the forroot method in angular4?

1 Answers  


How an object or function can get a hold of its dependencies?

0 Answers  


Why do we use angular?

1 Answers  


What is Transpiling in Angular?

1 Answers  


What is the model view controller (mvc)?

1 Answers  


What mean by topology?

1 Answers  


How to validate form in angular 4?

1 Answers  


What are zones? What is change detection?

1 Answers  


What is Restangular?

1 Answers  


What are the features of bazel?

2 Answers  


What are some differences between angular 2 and 4?

1 Answers  


What is the main thing that you would need to change if you were migrating from angularjs 1.4 to angularjs?

1 Answers  


Categories