David W
2008-05-23 06:27:57 UTC
I’m writing an adventure game and the user can enter text. If they enter text with an apostrophe I need to strip this out or I get MySQL errors. Ideally I want to escape the apostrophe so it gets stored in the table and then when it’s retrieved the code recognises an escaped apostrophe and displays it correctly
How would you handle the input from the user and then display it back again?
Thanks!