[Tutor] Highlighting Searched-for text
Allen Schmidt
aschmidt@fredericksburg.com
Mon Oct 28 20:35:02 2002
Works great! Here is what I did:
keywords is defined as on my Zope form as <INPUT ... NAME=keywords:tokens
... >
So, a single word or many, keywords is always a list. Cool...
for words in keywords:
adtext=adtext.replace(words, start+words+end)
return adtext
But, as you noted, its case sensitive. Is there a way to handle the
conversion without actually converting the data in adtext sent back? Like
just check for lower.keywords in lower.adtext? That type of thing??
Thanks
Allen