PrepAway - Latest Free Exam Questions & Answers

You need to display the user input in the Web page so that a cross-site scripting attack will be prevented

You are implementing a Web page that displays text that was typed by a user.
You need to display the user input in the Web page so that a cross-site scripting attack will be prevented.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Call document.write.

B.
Call Response.Write.

C.
Call HttpUtility.UrlEncode.

D.
Call HttpUtility.HtmlEncode.


Leave a Reply