Actions
Bug #30005
closedstdWrap.cropHTML wrong on full-word crop shortly inside HTML-element
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2011-09-19
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When using full-word crop (don't within a word) and when inside a HTML-element (like description of a link) the function fails on the first word.
Testcase (for tests/typo3/sysext/cms/tslib/class.tslib_contentTest.php):
$charset . ' text with full-word-crop shortly inside html-element 26|...|1' => array(
'26|...|1', 'Some text with a link to <a href="mailto:email.address@example.org">my email-address</a> and text after it', 'Some text with a link to <a href="mailto:email.address@example.org">...</a>', $charset
),
Actual result (inside link): m...
Expected result: ...
If you raise the limit to 27 (include full word "my") or 28 (word and space after it, space gets cropped correctly) everything is fine. But when the first word itself is not full it should leave out that word completely.
Actions