How to customize teaser

Strip html tags from teasers

Last modified: December 15, 2009 - 15:10

Description

The following snippet strips any tags from the body field of a node that is displayed as a teaser. That is to say, it strips the tags from the original teaser created from the body field, taking care not to strip the tags from extra fields added to the teaser by modules such as CCK.

Syndicate content
 
 

Drupal is a registered trademark of Dries Buytaert.