I have a page that is generating a hyperlink dynamically like so:
<A HREF="http:www.google.com">Enter Site</A>
but I want to put some tags around this so it doesn't appear, or function as a link and just displays the text as normal. Any ideas?
Printable View
I have a page that is generating a hyperlink dynamically like so:
<A HREF="http:www.google.com">Enter Site</A>
but I want to put some tags around this so it doesn't appear, or function as a link and just displays the text as normal. Any ideas?
replace < by <
replace > by >
is your host inserting this?
or are you wanting to display html source to the viewer?
If you're going to be writing a lot of code like that, it may be wise to consider investing in a program like DreamWeaver. That allows you to just tpye normally on the page. Saves time, and effort :)
James
I wouldn't advise getting an HTML editor. Makes you lazy and you forget the simple things like > etc.
also messes up the "HTML Compliance".Quote:
Originally posted by mendhak
I wouldn't advise getting an HTML editor. Makes you lazy and you forget the simple things like > etc.
App's like MS Frontpage / Dreamweaver / PHP Edit and stuff like dat don't use the proper html formatting.
Do:
<xmp>
<a href="link.html">this isn't real</a>
<input type="text" name="text" value="neither is this">
</xmp>
That's not valid HTML though, and is likely to break on certain browsers. Depends whether you're worried about that. If you can't actually change the HTML source, I'd probably do something like innerHTML with JavaScript. Not the best solution, but the best I could think of.
Quote:
Originally posted by Doe maar
replace < by <
replace > by >
this isnt that hard to do though?
I thought he meant he couldn't edit the code - it was embeded from a server-side call or something. Maybe not?
:wonder if he has it figured out any how, no new replies from the guy?
It is very similar to notepad, just that it has high speed colour coding and autocomplete features and some other code generators.
It is very similar to notepad, just that it has high speed colour coding and autocomplete features and some other code generators. the url is www.twk.2ya.com
Use onclick in a div tag surrounding regular text.
You may find that won't work though as the link will take over. Also I think it won't validate (if you're bothered about that) as I remember Punkpie haven't problems until he removed the onclick handler.