Recommendation(s) Sanitize user-supplied input before displaying or processing it. Use a secure terminal library or renderer that does not execute or interpret inputs from untrusted sources. Validate and strip any non-printable or control characters from user inputs.