hi!
php supports you doing this too (who would have guessed? 😉
try to use the built-in function htmlentities(), which automatically converts any char in the string given which has an html-entity-equivalent.
it's the most safe way to display your html-pages on browsers all over the world.
have a nice day
mario