Actions
Feature #16836
closedFeaturerequest: stdWrap.cropHtml
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2007-01-06
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
cropping any given HTML may disturb HTML, if it's cropped inside a tag. The only way to prevent this is to strip the tags before.
Here is a function that makes a correct crop with HTML, counting the non-HTML-words and close all open tags. The function is small and handy and works with php dom-function, see example file attached
See it online at http://www.sk-typo3.de/xmltree.php
(issue imported from #M4747)
Files
Updated by Peter Niederlag almost 18 years ago
The idea is very reasonable to me. At quick glance the code/patch looks good also to me. Maybe we can get this done on T3BOARD07.
should wel change this to a "feature-request", since it is not a bug with this proposal. Maybe it would be good to add this as a switch/subproperty of .crop?
Actions