Does not seem to filter empty tags

Created on 6 September 2022, about 2 years ago
Updated 8 May 2023, over 1 year ago

Problem/Motivation

Installed the module on Drupal 9.4.5 with CKEditor but it does not seem to filter empty tags.

Steps to reproduce

  • Install module on Drupal 9.4.5.
  • Turned on the module for the Basic HTML editor and set it as the last processor
  • Create page with empty ul tags and save
  • View the page, and empty ul tags are still there

Proposed resolution

It looks like changing the "FilterInterface" from "TYPE_HTML_RESTRICTOR" to "TYPE_TRANSFORM_REVERSIBLE" fixes the issue.

Remaining tasks

I am going to create a patch and post on this thread to see if it fixes the problem.

User interface changes

None.

API changes

See proposed resolution.

Data model changes

None.

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

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

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