Return early in preRenderText() if text is blank

Created on 27 October 2025, about 22 hours ago

Problem/Motivation

If a blank string is passed to ProcessedText::preRenderText() there's no reason to run any of the logic processing it, is there?

Steps to reproduce

Pass a blank string through ProcessedText::preRenderText()

Proposed resolution

Return early in ProcessedText::preRenderText() if $element['#text'] is a blank string.

Remaining tasks

Provide a MR.
Add test coverage.

User interface changes

n/a

Introduced terminology

n/a

API changes

TBD

Data model changes

n/a

Release notes snippet

TBD

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

filter.module

Created by

πŸ‡ΊπŸ‡ΈUnited States damienmckenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024