Here’s my Random Quote Machine, opinions and suggestions appreciated: http://codepen.io/svmi3195/full/mEzBWX/
Code on GitHub: https://github.com/svmi3195/freecodecamp_projects/tree/master/random_quote_machine
Here’s my Random Quote Machine, opinions and suggestions appreciated: http://codepen.io/svmi3195/full/mEzBWX/
Code on GitHub: https://github.com/svmi3195/freecodecamp_projects/tree/master/random_quote_machine
if(quote.indexOf(";") > -1){
quote = quote.replace(/;/g, ",");
}
You should do the same with %
Thanks for telling, I was wondering if there are more dangerous characters.
There is a nice function: encodeURIComponent() which will take care of all the dangerous characters
Yeah, tried it and it works nicely. Thanks!