Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

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.

Activity

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

Releases

Version Type Release date
1.0.0-alpha1 Pre-release Aug 20, 2026