Posts by Max • 41 points
3 posts
-
1
votes2
answers2181
viewsA: -bash: nodemon: command not found
In linux you need to add npx before nodemon npx nodemon app.js Already in windows you don’t need to do this just use nodemon app.js Of course do not forget to install nodemon in the project, do not…
-
2
votes4
answers1270
viewsA: How to fix Cross site scripting or XSS
Just remove certain characters, for example <, >, &, ', ", / Create some type of filter, from to use regex to make this filter. $xss = /[&<>"'*]/; Take a look at w3school on how…
-
-1
votes4
answers951
viewsA: How to make a "read more" and a "read less" button in a text that comes dynamically from the database with Pure Javascript?
Here’s the example, you can use map((data, id)) function to manipulate the data within the array and substring to determine the text size, I created 2 examples to help you, in the second example I…