Sanitizing Output

Learn how to sanitize your output in Node.js.

Outputting to the browser

Take precautions when saving data you take in. Sanitize or escape any user-generated data that is output back to the browser.

You can modify and escape your data before saving to the database, or in between by retrieving and outputting it to ...