Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Menu Link Attributes 8.x-1.9 — Minor update available for module menu_link_attributes (8.x-1.9). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Search API attachments 10.0.13 — Minor update available for module search_api_attachments (10.0.13). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Mismatched entity and/or field definitions 1.2.1 — Minor update available for module meaofd (1.2.1). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

This module provides a new formatter for text fields with summaries that allows you to trim the text while preserving an configurable allow-list of HTML tags. This prevents HTML from affecting the summary length and allows essential tags for display.

Advanced Summary Formatter implements a new field formatter for text fields with summary that extends core's TextTrimmedFormatter to strip HTML while preserving a configurable allow-list of tags.

Features

Sometimes the content of the node starts with HTML markup, for example, styling the test using inline styles, and then the standard TextTrimmedFormatter trims the text to replace the summary incorrectly, the HTML tags affect the length of the trimmed text. This module allows you to trim only the text that is meaningful for display, but allow some tags that are necessary for the user

Installation

Install and enable Advanced Summary Formatter like any other add-on module. See https://www.drupal.org/docs/extending-drupal/installing-modules

Configuration

After installing and enabling Advanced Summary Formatter, you will see the Advanced Summary Formatter option in the formatting drop-down list for your text fields. For content types, it is located on the Manage Display page. With Advanced Summary Formatter, you have the options to:

* Trim length
* Add an optional suffix after trimming
* Allowed HTML tags

Since Advanced Summary Formatter provides a field formatter, you can use it anywhere field formatters are available.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Aug 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0-alpha1 Pre-release 10–11 Aug 20, 2026