Hey,
DOes anybody know why HTML generated by wikipedia creates links like;
[syntax=xhtml]<a href="//es.wikipedia.org/">Link name</a>[/syntax]
What is the doubleslash before the URL all about ?
Thanks for any help you can offer
Best regards,
CK
Wikipedia link format ?
Re: Wikipedia link format ?
Well, Twitter uses it too.
And PHP doesn't think this is a valid URL when using the FILTER_VALIDATE_URL, which is kind of idiotic IMO.
Anyways, thanks for answering
And PHP doesn't think this is a valid URL when using the FILTER_VALIDATE_URL, which is kind of idiotic IMO.
Anyways, thanks for answering
Re: Wikipedia link format ?
I believe this can be used when you don't care whether http or https is used.
Re: Wikipedia link format ?
libeco wrote:I believe this can be used when you don't care whether http or https is used.
That makes sense, but surly just / would do the same thing
- FrederickGeek8
- Posts: 148
- Joined: Wed Nov 30, 2011 10:31 pm
Re: Wikipedia link format ?
jacek wrote:libeco wrote:I believe this can be used when you don't care whether http or https is used.
That makes sense, but surly just / would do the same thing
I would if it is on the same server
// is used when you don't care whether it uses https or http. It defaults to what protocol you are currently using.