Should not count HTML code (e.g. links) for trimming

Created on 18 October 2024, 3 months ago

Problem/Motivation

Currently if the text contains for example a link, the whole HTML code is also counted. The visible text can become very short then!

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Merge Requests

Comments & Activities

  • Issue created by @Anybody
  • Pipeline finished with Failed
    3 months ago
    Total: 135s
    #313477
  • Pipeline finished with Failed
    3 months ago
    Total: 138s
    #313488
  • Pipeline finished with Failed
    3 months ago
    Total: 135s
    #313507
  • 🇩🇪Germany Anybody Porta Westfalica

    Ok here we go, but please note that the logics are now and before not made for trimming content containing HTML! The code might still cut HTML tags in the middle!

    After thinking about all this a lot, I'm totally sure Combine with smart_trim for full power Active would be the right way to go and deprecate this module. Doing all the splitting logic etc. server-side makes so much more sense with smart_trim and solves so many issues here! JS then only needs to show / hide the text where it was split by class wrappers!

Production build 0.71.5 2024