Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For example truncating the HTML string "Hello <b>world</b>" to 10 characters would result in the string "Hello w" (with a bold "w"). Any non technical user would count 7 characters instead of 10. This module would be much more useful if it will only count visible characters.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2898983-trim-on-visible-characters.patch | 2.01 KB | mauritsl |
Comments
Comment #2
mauritsl CreditAttribution: mauritsl commentedPatch attached fixes this issue.
Comment #3
mauritsl CreditAttribution: mauritsl commentedComment #4
kevinquillen CreditAttribution: kevinquillen at Velir commentedThis might be my issue as well.
Comment #5
kevinquillen CreditAttribution: kevinquillen at Velir commentedThis does fix my issue.
Comment #6
JonMcL CreditAttribution: JonMcL commentedThank you for putting the time and effort into this. Hopefully maintainer will commit eventually.
I made a 8.x version of this patch here: #2975871: Number of characters should not include invisible HTML (8.x)
Comment #8
azovsky CreditAttribution: azovsky commented