Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: ECA: Event - Condition - Action 3.1.8 Minor update available for module eca (3.1.8). Release: Horizon Aid theme 1.0.2 Minor update available for theme vartheme_bs5_horizonaid (1.0.2). Release: LocalGov Alert Banner 1.10.1 Minor update available for module localgov_alert_banner (1.10.1). Release: Kordiam 1.0.14 Minor update available for module kordiam (1.0.14). Release: WissKI 8.x-4.4 Minor update available for module wisski (8.x-4.4). Release: AI Empathy Evaluation 1.3.0 Minor update available for module ai_empathy (1.3.0). Release: Zefix 1.0.5 Minor update available for module zefix (1.0.5). Release: Ui Suite Dsfr 1.15.2 Minor update available for theme ui_suite_dsfr (1.15.2). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Module Revived: Behat javascript 1.2.1 Module behat_javascript updated after 23 months of inactivity (1.2.1).

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
3 weeks 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