[Typo3-dev] Crop on HTML contents

Bertrand Gorge bertrand.gorge at epistema.com
Wed Mar 9 11:07:29 CET 2005


Hi,

Something like this ?
http://www.webmasterworld.com/forum88/6910.htm

and there (in the comments) :
http://fr2.php.net/manual/en/function.substr.php

B. Gorge

] -----Message d'origine-----
] De : typo3-dev-bounces at lists.netfielders.de
] [mailto:typo3-dev-bounces at lists.netfielders.de]De la part de Davide
] Principi
] Envoyé : mercredi 9 mars 2005 10:59
] À : typo3-dev at lists.netfielders.de
] Objet : [Typo3-dev] Crop on HTML contents
] 
] 
] 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
] 
] _______________________________________________
] Typo3-dev mailing list
] Typo3-dev at lists.netfielders.de
] http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
] 






More information about the TYPO3-dev mailing list