I
I
irvdev2017-03-08 14:25:53
Node.js
irvdev, 2017-03-08 14:25:53

How to remove extra characters in node.js server?

Hello! Please tell me how to remove extra characters in a string before writing to the database? Delete tags, etc.
For example, when a user is written to the database at the registration stage. There is a validator on the client, but still it is more important on the server.
Are there any special plugins? I don't even know what to google(
Thanks!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nick8, 2017-03-08
@irvdev

Regulars or replace to help

I
irvdev, 2017-03-08
@irvdev

Maybe there is some ready-made plugin? Because, among other things, you need to check logins, mail, passwords for objectionable characters. Does everyone write the same regular expressions every time?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question