Returns an empty string if there is no <p> tag in the string

Created on 28 February 2024, 9 months ago
Updated 28 March 2024, 8 months ago

Problem/Motivation

I have old nodes generated under D9 and CKE4 that does not have the surrounding <p>. After enabling this filter, all those pieces of content are replaced by empty string.

Steps to reproduce

  1. Apply the filter on a plain text text format (so you're sure that no markup is added to the string)
  2. Create a node using this format
  3. Display the result

Proposed resolution

If there is no <p> tag found, return the original string.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France duaelfr Montpellier, France

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024