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
Actions