I'm sure that every PHP coder comes up against this one eventually. I have a partial answer, but not a complete one.
I want to allow users to input both single and double quotes in a form text box, and then display back the input.
If the input is:
My "gut feeling" is that I shouldn't do it.
PHP inserts escape slashes in front of the double quotes, and truncates everything after the single quote. I can use stripslashes() to deal with the double quotes, but how can I stop the truncation after the single quotes?
Many thanks