All challenges
Multiple ChoiceIntermediate 30s

textContent safety

Choose the best answer for: textcontent safety
Options
  1. 1Parses the string as real markup
  2. 2Behaves just like innerHTML does
  3. 3Writes text less safely than it
  4. 4Sets plain text (XSS-safe)

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle