Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a way to display a link unrendered 1

Status
Not open for further replies.

webslinga

Programmer
Joined
Jun 20, 2006
Messages
55
Location
US
hey all,
I need to figure out how to display a link "as-is"(without actually rendering the link). Anyone got any ideas? i tried the HTML code tag <code></code> but that does not appear to work. Thanks for this.
 
Let me be more specific!
Code:
$url = "<a href='[URL unfurl="true"]http://www.google.com'>Google</a>";[/URL]
<?php echo $url; ?>

I want the following to echo out

instead of a hyperlink to Google. I hope that more clearly illustrates why I posted here in the PHP forum.
 
I suggest you look at the function [blue]htmlentities()[/blue]
in the php online manual.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks vacunita! That worked great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top