Well you don't need PHP to do it, but you can replace the greater than and
less than signs with their html entities(< and >) 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"" <[EMAIL PROTECTED]> wrote in message
00f901c0b0cf$c99e7da0$da604a2b@sony">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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to