Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

entity_to_text

17 sites Security covered
View on drupal.org

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.

Activity

Total releases
8
First release
Feb 2025
Latest release
1 month ago
Release cadence
52 days
Stability
63% stable

Release Timeline

Releases

Version Type Release date
1.3.1 Stable Feb 25, 2026
1.3.0 Stable Nov 7, 2025
1.3.x-dev Dev Nov 7, 2025
1.2.0 Stable Aug 11, 2025
1.2.x-dev Dev Aug 11, 2025
1.1.x-dev Dev Jul 28, 2025
1.1.0 Stable Feb 25, 2025
1.0.0 Stable Feb 25, 2025