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). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Entity 2 Text

16 sites Security covered Drupal 10–11 Entity ecosystem
View on drupal.org

This module provides APIs to convert Drupal content entities, such as nodes, paragraphs, and files, into plain text. It's useful for tasks like indexing content for search engines, improving SEO, or generating JSON-LD data.

This suite is primarily a set of APIs and tools to improve the developer experience.

This module provides a number of utility and helper APIs for developers to transform content into plain text.

Use Entity to Text if

  • You need to get plain-text content of Nodes for Indexing content into a Search Engine (Solr, Elasticsearch, ...).
  • You want to get plain-text of Nodes Paragraphs for SEO or JSON-LD.
  • You need to transform "Node entity" field(s) into plain-text content.
  • You need to transform "Paragraphs entity" field(s) into plain-text content.
  • You need to transform "File entity" into plain-text through Tika.

Usage

See code example for complete usage of Entity to Text.

Dependencies

The main module requires ezyang/htmlpurifier

  • The submodule entity_to_text_tika requires the library vaites/php-apache-tika.
  • The submodule entity_to_text_paragraphs requires the library drupal/paragraphs.

Which version should I use?

Drupal Core Entity to Text 8.x unsupported 9.x 1.0.x 10.x 1.1.x 11.x 1.1.x

Getting Started

We highly recommend you to install the module using `composer`.

$ composer require drupal/entity_to_text

Supporting organizations

This project is sponsored by Antistatique.
We are a Swiss Web Agency, Visit us at www.antistatique.net or Contact us.

Credits

Thank you to all our wonderful contributors.
Entity to Text is currently maintained by Kevin Wenger.

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
10
Tracked since
Feb 2025
Latest release
1 week ago
Releases (12 mo)
5
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.3.3 Stable 10–11 Aug 25, 2026
1.3.2 Stable 10–11 Jun 8, 2026
1.3.1 Stable 10–11 Feb 25, 2026
1.3.0 Stable 10–11 Nov 7, 2025
1.3.x-dev Dev 10–11 Nov 7, 2025
1.2.0 Stable 10–11 Aug 11, 2025
1.2.x-dev Dev 10–11 Aug 11, 2025
1.1.x-dev Dev 10–11 Jul 28, 2025
1.1.0 Stable 9–11 Feb 25, 2025
1.0.0 Stable 9–10 Feb 25, 2025