My Random Quote Machine for review

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 :slight_smile:

1 Like

Yeah, tried it and it works nicely. Thanks!