[TYPO3-english] Problem with crop and text field with line breaks
pmk at io.dk
Wed Nov 18 14:42:35 CET 2009
The standard "crop" function doesn't respect HTML tags, so you should use
stripHtml = 1 before you crop.
Or if you want to preserve the HTML formatting, use this extension:
It has same parameters as the standard "crop" + more.
"Brian Bendtsen" <bb at bellevuevej.dk> wrote in message
news:mailman.1.1258548266.20779.typo3-english at lists.typo3.org...
> This is driving me crazy.
> Im using the crop function on a text field, but somehow the output gets
> messed up if there is a linebreak in the text field.
> lib.mytextfield.crop = 100 | ... | 1
> the output looks like this:
> <div id="mytextfield">
> <p class="bodytext">
> this is my text before linebreak </p>
> The <.../p> is the problem here. What can I do to prevent this from
> happening? Any help is appreciated
More information about the TYPO3-english