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.

Supporting organizations: 

Project information

Releases