#82776Chaining f:format.crop and f:format.stripHtml does cut to early
Description
If i chain a <f:format><f:format>{text} the number of cropped (visible) chars sometimes is to low.</f:format></f:format>
The problem with this is, that the stripHtml removes tags, but does not remove spaces or newlines. And the following crop does count the spaces, tabs and newlines if they are in front of the text.
For instance:
<div>
<p>
Some text
Output of stripHtml (space replaced with *):
\n **\n ****Some text
Depending on newline type this results in in 8 or 10 chars less than given in maxChars. I could the issue if i chain another f:spaceless viewhelper, but thats not optimal.
I dont know if it would be better if f:format.stripHtml or f:format.crop should trim the text.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.