I've considered it a bug, not a feature. I don't know for sure what it is:P

Table of contents should not appear in teaser of nodes. I know the links don't appear in teaser, but the title appears.

Firstly, I guess "Table of contents" title should not appear in teaser.

Secondly, even on full pages, the "Table of contents" title should be optional. But this is not as important as the fact the title appears in teasers.

Comments

madjr’s picture

To solve this just strip/filter the html tags from the teasers using strip_tags

you can view the solution here:
http://drupal.org/node/104659

you can additionally format strip_tags to allow line breaks, bold text, etc.

deviantintegral’s picture

Status: Active » Closed (fixed)

If there is a way to set a filter to only run on the body, and not the teaser, please post here and let me know.

On the current site I use this, we use the excerpt module to control teasers, so this could be a (possible) solution. But strip_tags as above is probably your best solution.

--Andrew