Click to See Complete Forum and Search --> : Display raw code onscreen


bsmbahamas
03-20-2007, 01:23 PM
Hi guys is there a html tag i can use to display raw code in a browser,
without the browser trying to interpret it, or maybe a php function that will
allow me to do the same?

thanks

jogol
03-20-2007, 02:23 PM
http://www.htmldog.com/reference/htmltags/pre/
http://www.htmldog.com/reference/htmltags/code/

Znupi
03-20-2007, 02:44 PM
http://www.php.net/htmlspecialchars

NogDog
03-20-2007, 02:49 PM
highlight_string (http://www.php.net/highlight_string)()
highlight_file (http://www.php.net/highlight_file)()

bsmbahamas
03-21-2007, 06:22 AM
thanks guys

i used htmlentities()