Test your knowledge on jQuery Security and Edge Cases Quiz: XSS, Safe DOM Manipulation, and CSRF in AJAX. This quiz contains 10 questions.
Level: Beginner
Topic: security-and-edge-cases
Which jQuery method is safest for untrusted text?
You receive untrusted user input and want to display it inside a <div> without risking HTML execution.
Which jQuery method is the safest choice to insert the value as plain text?