7

I tried to add a comment that included this text:

https://username@password:www.mysite.com/mypath/

But it showed up like this:

username@password:www.mysite.com/mypath/

How can I prevent auto-hyperlinking in a comment?

The magic: (view edit (not source))

https://‎username@password:example.com/mypath/
5
  • Like this: https://‎username@password:www.mysite.com/mypath/ ?
    – random
    Oct 5, 2009 at 13:00
  • Yes. Please post whatever you did as an answer. Oct 5, 2009 at 13:05
  • @Stein Go into edit mode for your question and check out what's been added.
    – random
    Oct 5, 2009 at 13:08
  • like this? https://username@password:www.mysite.com/mypath/ -- just put it in a code block delimited by ` Nov 4, 2009 at 8:45
  • We detected an invalid link in your post, please correct it. (this message will be automatically removed when the link is fixed)
    – Community Bot
    May 14, 2012 at 5:24

3 Answers 3

6

Simply use the code `` delimiters

1
7

The examples above use U+200E Left-to-Right Mark as a zero-width joining character to break up a sequence that would be spotted as a link otherwise. This is a bit dodgy IMO; directionality characters have a specific use and this isn't it. Although U+200E isn't one of the directionality characters described by W3/Unicode as discouraged for use in markup, there is an argument for stripping them out, as the ‘discouraged’ characters definitely should be.

I suggest U+200D Zero-Width Joiner instead. (Although, in practice I tend to use U+200B Zero-Width Space, since my keyboard makes it easy to type.)

0
2

You're going to have to include some Unicode character that will be taken out by the parser and breaks the URL at the same time.

https://‎username@password:example.com/mypath/

Which kind of looks like this:

https://<hidden unicode here>username@password:example.com/mypath/
6
  • Ok, trying that: http<b>:</b>//this.is@test.com Oct 5, 2009 at 13:04
  • As you can see, that didn't work. Oct 5, 2009 at 13:04
  • Trying the edited answer: https://‎username@password:example.com/mypath/ Oct 5, 2009 at 13:09
  • 2
    So, besides copying your answer, how does one create a hidden character? Oct 5, 2009 at 13:09
  • 5
    Take the surnames of your two creators and reverse them. Then chroma map one of the other characters and you've now created Noob Saibot. Or just use this: fileformat.info/info/unicode/char/200e/index.htm
    – random
    Oct 5, 2009 at 13:24
  • Or use fileformat.info/info/unicode/char/200d/index.htm instead of https://‍fileformat.info/info/unicode/char/200e/index.htm, as recommended in the answer of bobince. Tip: this site has a nice "copy" button that allows you to copy the Unicode character to your clipboard :-)
    – wovano
    Sep 24, 2021 at 6:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .