Having problems with strings in HTML

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Jun 27 01:12:54 EDT 2006


In article <mailman.7465.1151358690.27775.python-list at python.org>,
 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&de
>cimal_places=10&show_classification=yes&db=arabidopsis&selection=any%20term&mod
>e=&mode_nos=&yellow_blue=yes&local_file_name=%(OUT_FILE_NAME)s&show_instruction
>s=no&expt_link=NASCArrays&max_adjust=2&view_size=large&highlight=%(HI_LITE_FILE
>_NAME)s">GraphicalOutput</a>
>         ''' % {'OUT_FILE_NAME': OUT_FILE_NAME, 'HI_LITE_FILE_NAME': 
>HI_LITE_FILE_NAME}

By the way, you _do_ realize that your "&" characters should be escaped 
as "&", don't you?



More information about the Python-list mailing list