Handling Form Data in Express.js

https://leanpub.com/node-and-express-simplified

Validation vs Sanitization vs Output Escaping: What’s the Difference?

https://leanpub.com/node-and-express-simplified

Types of Form Validation

https://leanpub.com/node-and-express-simplified

What Is Client-Side Form Validation?

https://leanpub.com/node-and-express-simplified

What Is Server-Side Form Validation?

https://leanpub.com/node-and-express-simplified

How to Use Express-Validator to Validate a Form’s Data

https://leanpub.com/node-and-express-simplified

Create a new project directory

https://leanpub.com/node-and-express-simplified

Create a package.json file

https://leanpub.com/node-and-express-simplified

Configure the project as an ES module application

https://leanpub.com/node-and-express-simplified

Install the required packages

https://leanpub.com/node-and-express-simplified

Configure a web server to respond to browser requests

https://leanpub.com/node-and-express-simplified

Create the routes

https://leanpub.com/node-and-express-simplified

Create the controllers

https://leanpub.com/node-and-express-simplified

body()

https://leanpub.com/node-and-express-simplified

validationResult()

https://leanpub.com/node-and-express-simplified

Create the views

https://leanpub.com/node-and-express-simplified

views/index.ejs

https://leanpub.com/node-and-express-simplified

views/infoForm.ejs

https://leanpub.com/node-and-express-simplified

Run your Express.js application

https://leanpub.com/node-and-express-simplified

Important Things to Know About Validation, Sanitization, and Output Escaping in Express

https://leanpub.com/node-and-express-simplified

Why use the escaped output tag (<%=)?

https://leanpub.com/node-and-express-simplified

EJS’s HTML escaping is effective for normal HTML output

https://leanpub.com/node-and-express-simplified

Avoid escaping user-supplied data permanently

https://leanpub.com/node-and-express-simplified

POST vs GET Method Attributes in HTML Forms

https://leanpub.com/node-and-express-simplified

Usage

https://leanpub.com/node-and-express-simplified

Data visibility

https://leanpub.com/node-and-express-simplified

Data size

https://leanpub.com/node-and-express-simplified

Bookmarkable query

https://leanpub.com/node-and-express-simplified

Shareable query

https://leanpub.com/node-and-express-simplified

Repeated requests

https://leanpub.com/node-and-express-simplified