Concept
Treat all input as hostile: validate its shape, bound its size, and escape it for wherever it goes next, whether HTML, SQL, a shell or a log line. Each destination has its own rules.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Input sanitisation doing its job.
import { escape } from "node:querystring";
// HTML output: escape at render time, never trust stored strings
const safe = (s) => s.replace(/[&<>"']/g, (c) =>
({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[c]);
// Shell: pass arguments, never a command string
import { execFile } from "node:child_process";
execFile("convert", [userFilename, "out.png"], callback);Sanitising on input and then trusting the data everywhere. One field escaped for HTML is still dangerous in a shell command; escape for the context at the point of use.
Your roadmap puts these before Input sanitisation, unless you already know them.
Once a session shows you understand Input sanitisation, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.