Terms are matched within HTML tags, which leads to broken displays and weird behavior. Perhaps Glossary could strip or ignore HTML tags somehow before filtering for terms.

Comments

njivy’s picture

I suppose an example would help:

Filtered output with spurious 'FreeBSD' match:
For more information about Apache, visit the on-line documentation at http://httpd.apache.org/docs or view the apachectl man paigei.

Glossary settings:
case-insensitive, left substring, superscript 'i'

Glossary terms:
FreeBSD, Apache, and other terms listed at
http://toughnail.com/glossary

Anonymous’s picture

I suspect that you use some other filter which messes glossary's output up.
Can you supply a list of enabled filters?

Gerhard

moshe weitzman’s picture

this is a real problem ... i had an editor define the term 'font' in my site and that broke rendering of various posts.

killes@www.drop.org’s picture

Assigned: Unassigned » killes@www.drop.org

Fixed in cvs and 4.4. The fix assumes that there are no unpaired > and < in the code.

Anonymous’s picture

chanel’s picture

http://cvs.drupal.org/viewcvs/contributions/modules/glossary/glossary.mo...

The fix linked above appears to catch (and bypass) matches that fall within an open anchor with href'd URL, but not ones that fall between the open and close anchor tags.

So, for example, if "RSS" is a glossary term, and the text being filtered against is <a href="http://info.org/rss/moreinfo">more on RSS</a>
then it would correctly bypass the RSS hit within the href, but incorrectly tag the RSS that falls between the open anchor and close anchor thus breaking the intended link.

If I change $opena and $closea back to their previous values then it properly skips both RSS instances and tags the next instance it finds (that's not in a link).

killes@www.drop.org’s picture

fixed.

Anonymous’s picture