Properly handle <!--break--> HTML comment

Created on 18 June 2023, almost 2 years ago

This issue has been spun off from 🐛 Truncate must not count HTML comments Fixed .

How should we handle HTML <!--break-->?

  1. Should we treat this as an HTML comment and not count it?
  2. If Smart Trim sees this, should it automatically return the text before it as the trimmed text (and ignore the formatter configuration)?

With option 2, we would be treating <!--break--> as a "golden ticket" and allow it to dictate what is returned by the formatter.

With option 1, we would be ignoring any possible intent by authors to "hard code" the summary into the body field by manually inserting a <!--break-->.

I am leaning towards option 1 as <!--break--> is kind of out-dated (IMHO).

Thoughts?

-mike

📌 Task
Status

Active

Version

2.1

Component

Code

Created by

🇺🇸United States ultimike Florida, USA

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