* Vincent D Murphy <[EMAIL PROTECTED]> [2002-10-25 14:22]:
> i would like to highlight search terms in a html page of search 
> results, by passing an array of scalars which are the search terms.

[-- snip --]

> perhaps i could have something like this:
> 
> [% c.postaladdress FILTER html FILTER highlight(terms, "<span 
> class='term'>", "</span>") %]

How about:

[% c.postaladdress FILTER html FILTER
      replace(terms, "<span class='term'>$terms</span>") %]

(darren)

-- 
You're not supposed to be so blind with patriotism that you can't face
reality. Wrong is wrong, no matter who says it.
    -- Malcolm X

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to