nerdexam
Microsoft

70-515 · Question #163

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…

Sign in or unlock 70-515 to reveal the answer and full explanation for question #163. The question stem and answer options stay visible for context.

Question

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?

Options

  • ACall document.write.
  • BCall Response.Write.
  • CCall HttpUtility.UrlEncode.
  • DCall HttpUtility.HtmlEncode.

Unlock 70-515 to see the answer

You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-515 Practice