Write a function that safely serializes user input before it touches the DOM, probing XSS awareness in payment forms. · InterviewLane