Allow configuring HTML elements to remove from the summary including their contents

Created on 15 July 2021, over 3 years ago
Updated 1 July 2024, 6 months ago

Problem/Motivation

Recently i wanted to remove headlines from a teasers display mode.

Proposed resolution

I think it might be useful to make the stripped HTML elements configurable.

Remaining tasks

Review the patch. Backport to D7?. Replace #states: #3194975: Settings form '#states' values only work on fields named 'body' ( https://www.drupal.org/project/smart_trim/issues/319497 )

User interface changes

A new field that allows the user to specify the HTML tags.

API changes

This patch replaces the changes made in #3194986: Javascript appearing when HTML is being stripped ( https://www.drupal.org/project/smart_trim/issues/3194986 ). These tags have been set as the new default setting.

Feature request
Status

Needs work

Version

2.1

Component

Code

Created by

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