I am a beginner to drupal and am trying to customize views so that the output is in the format that I want. I set up a view called foo that will display a list of blog entries. I would like to display the teaser and apply a filter that filters out all html tags. I just want plain text.

I set up the views-view-field--foo-teaser.tpl.php file, but have been unable to figure how to apply a filter within this theme file.

Any help would be appreciated.

Comments

merlinofchaos’s picture

Status: Active » Fixed

Run the teaser through strip_tags()

zagnutts’s picture

Worked like a charm. thank you.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.