[Typo3-dev] Crop on HTML contents
Davide Principi
d.principi at provincia.ps.it
Wed Mar 9 10:59:01 CET 2005
Hi all again,
I would crop an HTML string, being sure the cut will happen in TEXT and
not in TAGS.
For example I can't crop the following string with stdWrap using a
char-limit of 3 because it will break the HTML code:
<div>content <b>text</b></div>
So the function has to keep track of all opening tags, and find the crop
point counting content-chars only. Then close the tags.
I looked for an extension, but I didn't find a solution.
Is there some API function that can help or something already working?
Thanks,
--Davide Principi
More information about the TYPO3-dev
mailing list