Striptags Formatter

Component ID

489440

Component name

Striptags Formatter

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

2660

Component created

Component changed

Component body

This module provides a lightweight field formatter that strips all X/HTML from a text or link field to ensure it is only the text.

This module is a good solution for following issues, possibly others too!.

  • Often when displaying content with Views using the teaser format type (especially when you're also using WYSIWYG editors) HTML can be invalidated and break your theme by only displaying the opening HTML tags. Simply enable the 'Strip HTML' display type in your node type display settings to fix this.
  • You may also want to have no styling on lists or teasers, but have it on the full node page.

Note that views does have a filter of this sort buried within the field display settings if you have selected the 'Table' or 'Unformatted' display type. Once you have highlighted the field, select 'Trim this field to a maximum length', and select the 'Strip HTML from display' checkbox.