A Field formatter settings implementation to enable trimming without counting HTML tags. This has been a long standing issue with Drupal text_trimmed formatter. Following issues address this problem:

This module provides a neat solution for cutting off the text without taking any HTML tags into consideration. It uses a regular expression containing all the words of a trimmed textual representation of the field value to extract the wanted block of HTML.

This is a simple solution for anyone that just wants their teasers to have the same textual length regardless of any links, images or other tags that are in the field value. This module does not provide a way to cut off at the end of a sentence. It goes up to word level.

Project information

  • caution Seeking co-maintainer(s)
    Maintainers are looking for help reviewing issues.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon57 sites report using this module
  • Created by alexverb on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases