Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Minimal HTML

49 sites Security covered Drupal 8–11
View on drupal.org

This module provides a simple, pre-configured rich text editor format with a limited set of allowed HTML tags, ideal for basic text input fields. A submodule offers an even more restricted format for specific use cases.

This module provides the Minimal HTML text format, a rich text (WYSIWYG) format well suited for basic uses like short text fields and admin-configurable text areas.

It allows only a few HTML tags: <a href hreflang> <abbr title> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>

It relies on WYSIWYG Linebreaks so that the text area is equally easy to edit with CKEditor rich text editing turned off. (Note that while paragraph and break tags are not included in the allowed tags, with the default configuration they will be added by the automatic paragraph filter.)

A submodule, Minimal HTML Title, allows only
<abbr title> <em> <strong> <code>

This module is meant to be required by other modules so they do not have to define redundant text formats of their own to be sure an appropriate one is available. Likewise, if building an installation profile or just a site which needs a minimal HTML text format, require and enable this module rather than rolling your own. Individual sites can always override this default configuration.

Maybe a quick composer require drupal/minimalhtml can save you a couple minutes configuring when building a site, too! (And have your text format ready for any module that needs the same kind, without it producing duplicates.)

When making a module, add Minimal HTML to your module's required modules section in the composer.json like this (do not duplicate the "require" block though):

require: {
  "drupal/minimalhtml": "^2"
}

And to your module's *.info.yml as:

dependencies:
  - minimalhtml:minimalhtml
  - minimalhtml:minimalhtmltitle 

Minimal HTML Title submodule can be enabled and used independently of Minimal HTML module, so either one or both can be given as dependencies.

Current projects which use Minimal HTML:

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
2.0.5 Stable 8–11 Aug 29, 2025
2.0.4 Stable 8–11 Aug 29, 2025
2.0.3 Stable 8–11 May 23, 2025