Issue Feature Closed

#16836Featurerequest: stdWrap.cropHtml

Steffen Kamper 01/06/07, 20:24 updated 10/02/18, 12:39

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.