Victor Spång Arthursson wrote:
Are there any good function to replace special characters, for example
double qoutes, with something that are more html-safe?
If only the PHP gods would bless us with a function such as
htmlspecialchars() or maybe even htmlentities()... what a great world it
would
2003-11-05 kl. 16.07 skrev Pavel Jartsev:
Try "htmlspecialchars()" and/or "htmlentities()".
htmlentities() did it best!
Thanks,
/.v
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Victor Spång Arthursson wrote:
Are there any good function to replace special characters, for example
double qoutes, with something that are more html-safe?
For example:
The above is generated with PHP and fetched from a database
(postgresql). I'ld like to have the double qoutes replaced with
[snip]
Are there any good function to replace special characters, for example
double qoutes, with something that are more html-safe?
[/snip]
http://www.php.net/str_replace
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
4 matches
Mail list logo