My Random Quote Machine for review

Here’s my Random Quote Machine, opinions and suggestions appreciated:

Code on GitHub:

  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!