Having problems with strings in HTML

Sion Arrowsmith siona at chiark.greenend.org.uk
Tue Jun 27 09:23:58 EDT 2006


Lawrence D'Oliveiro  <ldo at geek-central.gen.new_zealand> wrote:
> Kiana Toufighi <kiana.toufighi at utoronto.ca> wrote:
>
>>print '''
>>            <a 
>>href="http://bbc.botany.utoronto.ca/ntools/cgi-bin/ntools_treeview_word.cgi?inp
>>ut=&max=2&values_off=no&remove_bracket=no&show_line_nr=yes&show_link_out=yes
>> [ ... ] ">GraphicalOutput</a>
>>         ''' [ ... ]
>
>By the way, you _do_ realize that your "&" characters should be escaped 
>as "&", don't you?

No they shouldn't. They part of the url, which is (IIRC) a CDATA
attribute of the A element, not PCDATA.

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list