Stuart wrote:
Diana Castillo wrote:

is there any function that will always replace a "&" with a "&amp" in a
string?

$string = str_replace('&', ' ', $string);

Forgot to mention the htmlentities and htmlspecialchars functions, but they do more than you asked for.


--
Stuart

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to