[Zope-CMF] ZCSearchPatch

Shane Hathaway shane@zope.com
Wed, 14 May 2003 10:48:57 -0400


Eric Dunn wrote:
> Question: How can I tell the SearchPatch.py file to
> ignore the space tag or treat it as a space?

...

>     if find(source, '<') != -1:
>         # Strip HTML tags and comments from source
>         source = html_re.sub('', source)

Insert a space in that string.

source = html_re.sub(' ', source)

Alternatively, use ZCTextIndex, which can also strip HTML.  I think 
TextIndexNG does, too.

Shane