Share your repls and programming experiences

← Back to all posts
Dictionary Bot
paulfears (88)
ashtro4 (13)

This is amazing.

paulfears (88)

@ashtro4: Thanks glad you like it

DarkCeptor44 (1)

Why did you put that on line 10, without it the ' is just ', I tested it.

paulfears (88)

@darkceptor44: &APOS is a html safety thing that prevents cross side scripting however whenever there is an apostrophe in a response it will show up as &APOS. So since this bot isn't really vulnerable to cross side scripting I replaced &APOS with an apostrophe to make a better user experience. The syntax looks a little funky however it is just a piece of code that means replace &APOS with an apostrophe