I am using MongoDB with NodeJS, and I am wondering if data needs to be sanitized before inserting / updating database documents. Its hard to find a definite answer, and I'm wondering if there are any Node modules that do this nicely, or do I need to strip all occurrences of lines into lines, or just don't have to worry about it. I know that PHP has holes, but I'm using the Node / Mongo (native driver) command, but still not sure if I need to do user input cleanup.
source share