List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:January 9 2003 3:16am
Subject:Re: converting text to hypertext
View as plain text  
At 17:23 -0500 1/8/03, Keith C. Ivey wrote:
>On 8 Jan 2003, at 12:08, Paul DuBois wrote:
>
>>  You must perform the conversion yourself, displaying the URL both
>>  as the href atttribute and body text of an <a> tag.  Don't forget
>>  to URL-encode it for use in the attribute, and HTML-encode it for
>>  use in the body text.
>
>I think Paul meant to say you should HTML-encode it for both the HREF
>value and the link text.  URL-encoding is for *parameters* that are
>going to become part of a URL.  You wouldn't URL-encode a whole URL
>(unless you were passing it as a parameter in another URL -- perhaps
>the URL of a redirection script).  A URL-encoded URL wouldn't work as
>a link, since the slashes would have been changed to '%2F', among
>other things.

Correct, thanks.

>
>The HTML-encoding is only necessary if the URL could contain an
>ampersand (or less-than, greater-than, or quote, but URLs aren't
>supposed to have those characters in them).
>
>[Filter fodder: SQL]
>
>--
>Keith C. Ivey <keith@stripped>
>Tobacco Documents Online
>http://tobaccodocuments.org
>Phone 202-667-6653

Thread
converting text to hypertextRick Tucker8 Jan
  • Re: converting text to hypertextPaul DuBois8 Jan
    • Re: converting text to hypertextKeith C. Ivey8 Jan
      • Re: converting text to hypertextPaul DuBois9 Jan
  • Re: converting text to hypertextwalt8 Jan
  • Re: converting text to hypertextRodney Broom8 Jan
    • Re: converting text to hypertextMichael T. Babcock13 Jan
      • help with querylbelen13 Jan
      • help with querylbelen13 Jan
      • help with querylbelen13 Jan
      • Re: help with queryGelu Gogancea13 Jan
  • Re: converting text to hypertextZak Greant8 Jan
  • Re: converting text to hypertextR. Hannes Niedner8 Jan
  • Re: converting text to hypertextR. Hannes Niedner8 Jan
  • RE: converting text to hypertextBryant Hester8 Jan
RE: converting text to hypertextRick Tucker8 Jan
  • RE: converting text to hypertextLarry Brown8 Jan
  • Re: converting text to hypertextwcb9 Jan
  • RE: converting text to hypertextJennifer Goodie9 Jan
  • Re: converting text to hypertextMichael T. Babcock9 Jan
RE: help with queryKenneth Hylton13 Jan
Re: help with queryLeonardo Javier Belén14 Jan
  • Re: help with queryCH Tsang14 Jan
    • Re: help with queryLeonardo Javier Belén14 Jan
  • Re: help with queryRoger Baklund14 Jan