Are there any good function to replace special characters, for example double qoutes, with something that are more html-safe?
For example:
<option label="Dekora Marilet "Amerikano" (9859)" value="98590"> </option>
The above is generated with PHP and fetched from a database (postgresql). I'ld like to have the double qoutes replaced with "something else" ;) There could be other strange characters as well that needs to be replaced, so some sort of universal function would be really nice to get tips on… ;)
Sincerely
Victor
Try "htmlspecialchars()" and/or "htmlentities()".
-- Pavel a.k.a. Papi
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

