My Random Quote Machine for review

My Random Quote Machine for review
0

#1

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


#2
  if(quote.indexOf(";") > -1){
    quote = quote.replace(/;/g, ",");
  }

You should do the same with %


#3

Thanks for telling, I was wondering if there are more dangerous characters.


#4

There is a nice function: encodeURIComponent() which will take care of all the dangerous characters :slight_smile:


#5

Yeah, tried it and it works nicely. Thanks!