Input Validation and Output Encoding

Validation checks that input fits its allowed domain. Output encoding represents data safely and correctly within a particular output grammar.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace an ordinary quotation mark
  2. Check both promises

Trace an ordinary quotation mark

A title can legitimately contain quotes. Domain validation can accept it while the renderer encodes it for the chosen representation. Escaping and character encoding describe two distinct output boundaries.

Check both promises

Use a fixture with accents and punctuation to verify the stored title and its displayed form. End-to-end form tests connect those observations through the expected workflow.[1]

References

  1. NIST SP 800-218, Secure Software Development Framework ↩