18 Nov 09 This did start out as me trying the process to see how to do it, but given the interest by others and the difficulties encountered in the discussion below, I though I'd edit this to better explain what needs to be done.

Always wondered how how people write a link as html without it converting to an actual link?

<a href="http://www.atheistnexus.org">Atheist Nexus</a>

If you write it as above you'll get the usual link that we're all familiar with: Atheist Nexus (This link will open in this window).

To avoid the text automatically converting into a link you will need to use special characters to write the angle brackets. They are:

&#60; to get < and &#62; to get >

or

&lt; to get < and &gt; to get >

Extra info for the reader's edification

If you want the link to open in a new tab or window just add target="_blank". To wit:

<a href="http://www.atheistnexus.org" target="_blank">Atheist Nexus</a>

which give you the link Atheist Nexus that opens in a new tab or window (depending on your browser settings).


Felch linking to Special Characters.

Tags: html, link

Views: 39

Replies to This Discussion

American Atheists

< = <, > = >
Cool!
You need to use numerical codes. These characters are reserved. Here's a list -

http://www.webmonkey.com/reference/Special_Characters
Now I know how to point to. This time cut and paste worked for the URL, but it hasn't in the past.
Go figure?
<object id="player" type="application/x-shockwave-flash" data="http://static.ning.com/socialnetworkmain/widgets/music/swf/MusicPlayer.swf?v=200912101700&playlistUrl=http%3A%2F%2Fwww.atheistnexus.org%2Fmusic%2Fplaylist%2Fshow%3Ffmt%3Dxspf%26id%3D2182797%253APlaylist%253A541185%26mdate%3D2009-12-16T02%253A29%253A03.397Z%26nik%3D00ktuo5ysy0f0&autoplay=1&showPlaylist=1" width="0" height="0"><param name="allowscriptaccess" value="never"></param></object> _origwidth="0"

www.atheistnexus.org <-- gets automagically linkified (even when not explicitly trying to create a link)

w w w.atheistnexus.org <-- doesn't, but looks ugly.

How to defeat this?

Trying to insert a Unicode "Word Joiner" (invisible nonbreaking "space", like &nbsp; except zero-width) in between the w's (   &#x2060;  in HTML mode, or equivalently, the decimal form &#8288; instead -- it looks like these get parsed and replaced by the character they represent early, even when switching from HTML to WYSIWYG. Let's see if it works....

w⁠w⁠w.atheistnexus.org <-- ??? we'll see! suppresses the linkification!

And so should www&#8288;.atheistnexus.org (with the Word Joiner entered in HTML mode):
www⁠.atheistnexus.org

(Disadvantage: the Word Joiner is still an extraneous character, and can be a visible "unknown character" -- question mark, or rectangle, etc., perhaps with weird spacing -- if copied-and-pasted into a word processor or text editor. Is there a parallel to Wikipedia's <nowiki> tag?)

Trying another approach: interrupting the magic string "www." with an HTML comment:
www[EDIT: that exposed a bug, which truncated my posting at that point! I'm pretty sure HTML comments inside regular text, not being linkified, are OK... testing it here between these two asterisks: **]

RSS

Support Atheist Nexus

Donate Today

Donate

 

Help Nexus When You Buy From Amazon

Amazon

 

Latest Activity

Future replied to jay H's discussion What the freakin hell is wrong with this country???
1 hour ago
Loren Miller replied to jay H's discussion What the freakin hell is wrong with this country???
1 hour ago
Michael Penn commented on nikki summers's blog post atheist billboard
2 hours ago
Michael Penn replied to jay H's discussion What the freakin hell is wrong with this country???
2 hours ago
John Jubinsky posted photos
2 hours ago
Loren Miller commented on Loren Miller's blog post Is god good?
2 hours ago
Joan Denoo replied to Grinning Cat's discussion Greta Christina: Why Being Liberal Really Is Better Than Being Conservative in the group Politics, Economics, and Religion
5 hours ago
Tom Sarbeck replied to Grinning Cat's discussion Greta Christina: Why Being Liberal Really Is Better Than Being Conservative in the group Politics, Economics, and Religion
6 hours ago
Grinning Cat replied to Grinning Cat's discussion Greta Christina: Why Being Liberal Really Is Better Than Being Conservative in the group Politics, Economics, and Religion
6 hours ago
Luara replied to Daniel W's discussion Are same sex marriages more stable than so-called traditional marriages? in the group LGBTQI atheists, nontheists, and friends
6 hours ago
sk8eycat replied to Joan Denoo's discussion The Bible is not Great by Soren Sagan in the group ORIGINS: UNIVERSE, LIFE, HUMANKIND, AND DARWIN
7 hours ago
Joan Denoo replied to Grinning Cat's discussion Greta Christina on "Why Being Liberal Really Is Better Than Being Conservative" in the group Politics, Economics, and Religion
7 hours ago

© 2014   Atheist Nexus. All rights reserved. Admin: Richard Haynes.

Badges  |  Report an Issue  |  Terms of Service