Trimmed body display format can result in faulty and chopped off HTML if "Correct faulty and chopped off HTML" is not activated on the text format

Created on 27 April 2016, about 8 years ago
Updated 20 May 2024, about 1 month ago

Hi,

I am getting the lots of jquery error, So It would break all the jquery functionality in that page.

Steps to reproduce the issue :

1. Set Body field format as Trimmed with limit (100 char) in Teaser mode
2. Create article node with tag in body field
for example :
<p><em>Globally myocardinate orthogonal communities through frictionless leadership skills. Completely engage client-based customer service and cross-platform human capital. Professionally generate vertical web-readiness rather than magnetic data. Distinctively target optimal infomediaries via synergistic products. Interactively develop vertical manufactured products and highly efficient niche markets.</em></p>
Add these in the body field. and save the node.
3. Then see the article node in teaser mode, you would see the jquery errors.

Before patch - italics apply to the rest of the page:

After patch - italics are correctly clipped at the end of the summary:

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Text 

Last updated 7 days ago

Created by

🇮🇳India leopathu

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.69.0 2024