striping unwanted characters from $string
| From: | mailing | Date: | Mon, 19 May 2003 16:06:29 +0000 |
| Subject: | striping unwanted characters from $string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148181@lists.php.net to get a copy of this message | ||
Hi
I have a problem in that if a user inputs a string with ' in it the
dynamically generated links will not work, as they read the ' as the end of
the string (yeah?)
I have read the manual regarding htmlspecialchars, stripcslashes,
htmlentities, stristr and so on....but I find it all very confusing - which
am I supposed to use? and are there other characters that could cause a
similar thing?
Any advice gratefully received.
Cheers
James