RE: [PHP-DB] How to display HTML code?

From: Date: Tue, 20 Mar 2001 01:45:44 +0000
Subject: RE: [PHP-DB] How to display HTML code?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7622@lists.php.net to get a copy of this message
there is something to much easy... just put before php tags, the tag <XMP> and after the php </XMP>, this only works on IE. scotty -----Mensaje original----- De: Phillip Bow [mailto:philb@oreilly.com] Enviado el: Lunes, 19 de Marzo de 2001 09:20 p.m. Para: php-db@lists.php.net Asunto: Re: [PHP-DB] How to display HTML code? Well you don't need PHP to do it, but you can replace the greater than and less than signs with their html entities(&lt; and &gt;) which the browser will parse, and it will display the appropriate chars. So... <?php print "&lt;font size=+2&gt"; ?> will print the html without parsing it. Now if only the newsreader doesn't parse this as html. -- phill ""Osman Omar"" <osman@sem.my.sony.com.sg> wrote in message news:00f901c0b0cf$c99e7da0$da604a2b@sony... > Hi, > > Suppose I want to display HTML code eg "<A HREF=home.php>Home</A>" > > How can I do that in php? > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#7622) next »