Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

HTML Field Formatter

850 sites Security covered
View on drupal.org

This module allows you to display the content of text and string fields as raw HTML. It's useful when you have plain text fields containing basic HTML markup that you want to render directly. Be cautious, as this module outputs HTML unfiltered, so it's important to restrict access to trusted users to prevent potential security risks like XSS.

This is a very simple module that enables an HTML field format for text and string fields.

Useful for plain text fields that might have basic html and needs to be rendered as such.

Provides a simple solution for many different use cases.

By default, this module outputs the HTML code of the field unfiltered.
It is therefore the responsibility of the site operator to take appropriate
measures, e.g. against XSS. Access should be restricted to trusted roles.

Requirements

No special requirements at this time.

Install

It is recommended to install via composer. See below for commands:

composer require drupal/html_field_formatter
drush en html_field_formatter

Configuration

  1. Goto Structure -> Content Types and select a content type to change.
  2. Goto "Manage Display" page and change "Format" on desired field to "HTML".
  3. Configure any formatting settings as needed.
  4. Save changes.
  5. Now field should be formatted as HTML.

Activity

Total releases
3
First release
Aug 2025
Latest release
10 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
3.0.0 Stable Sep 17, 2025
3.0.0-rc1 Pre-release Aug 25, 2025
3.x-dev Dev Aug 25, 2025