This is a discussion on "Display link code in html page" within the Web Page Design section. This forum, and the thread "Display link code in html page are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Display link code in html page
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Display link code in html page
Hi,
I was wondering how I might display this on a page without it actually creatimg the link? ie how is it printed in the code box below, not actually creating a link??
|
|
|
|
#2
|
||||
|
||||
|
Re: Display link code in html page
convert the html entities.
eg.
A small list can be found here http://www.w3schools.com/tags/ref_entities.asp
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Display link code in html page
ahh of course, thank you!
|
|
#4
|
|||
|
|||
|
Re: Display link code in html page
thanks for helping me indirectly
|
|
#5
|
|||
|
|||
|
Re: Display link code in html page
Actually:
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#6
|
|||
|
|||
|
Re: Display link code in html page
I never got a problem with the quotes?!?
If you wrap your code in <code> tags then you shouldn't have a problem with that no? |
|
#7
|
||||
|
||||
|
Re: Display link code in html page
This tools converts it for you automatically ( JackFranklin found it ).
http://www.simplebits.com/cgi-bin/si...l?mode=process
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#8
|
||||
|
||||
|
Re: Display link code in html page
Isnt there also a PHP function for this sort of stuff? I cant remember it now when i come to think of it!
eg. It would convert < to < and so on!
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#9
|
|||
|
|||
|
Re: Display link code in html page
Preg Replace would be the function no?
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#10
|
||||
|
||||
|
Re: Display link code in html page
Errr.. Its somthing like that
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#11
|
|||
|
|||
|
Re: Display link code in html page
|
|
#12
|
||||
|
||||
|
Re: Display link code in html page
Use this to take html code and chuck in the < etc
http://www.simplebits.com/cgi-bin/si...l?mode=process
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#13
|
||||
|
||||
|
Re: Display link code in html page
Quote:
Yep, alex has already said this Karinne thats the one!
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#14
|
||||
|
||||
|
Re: Display link code in html page
Yes, I used htmlentities for form inputs to stop people executing malicious scripts,
but this is another use for it!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there a html code to make a page a certain size | allstar | Web Page Design | 4 | May 5th, 2008 20:25 |
| Pointing a link to dir instead of html page | plato | Starting Out | 2 | Aug 20th, 2007 21:04 |
| html code for link? | cj550 | Web Page Design | 2 | Mar 30th, 2007 16:03 |
| How to link HTML page to CSS file | winwin | Web Page Design | 18 | Dec 21st, 2006 09:46 |
| Access a HTML InputBox through the Code-Page | bwalker | ASP.NET Forum | 5 | Nov 10th, 2005 12:58 |