About RemoveEmptyParagraphs

Textformatter to remove empty paragraphs from CKE fields

Category Text Formatters
Textformatter modules that provide run-time formatting for blocks of text (typically used with Text/Textarea fields).
Release StateStable
Should be safe for use in production environments. *
Authorbernhardbaumrock
Module Version1.0.0
Class NameTextformatterRemoveEmptyParagraphs
Compatibility3.0
Date AddedApril 25, 2020
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/TextformatterRemoveEmptyParagraphs/
How to install or uninstall modules

README

TextformatterRemoveEmptyParagraphs

ProcessWire Textformatter to remove empty paragraphs from CKE fields

Removes empty paragraphs from a html string. A paragraph is considered to be empty if it only contains one or more of the following:

  • regular whitespace
  • UTF-8 encoded whitespace
  • all variants of <br/>