Support for Shortcode module

Created on 21 May 2025, 17 days ago

Problem/Motivation

Under the current trimmer Shortcodes implemented via the Shortcode module ( https://www.drupal.org/project/shortcode β†’ ) will be rendered and not trimmed.

Steps to reproduce

Make content with a Shortcode in it and render with the Smart Trim formatter.

Proposed resolution

Modify the formatter to treat Shortcodes like it treats HTML tags and strip them when strip HTML tags is checked.

Remaining tasks

When HTML tags are NOT trimmed it will still render the Shortcode and ignore trimming settings. Maybe this could also be improved?

User interface changes

None

API changes

None

Data model changes

None

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand fraserthompson Dunedin, New Zealand

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