[TYPO3-mvc] RFC: #7743: fluid should crop HTML right

Xavier Perseguers typo3 at perseguers.ch
Fri May 28 23:42:13 CEST 2010


Hi,

On 28/05/10 20:17 , Martin Kutschker wrote:
> Felix Oertel schrieb:
>>
>> Solution:
>> ---------
>> With the attached patch, the viewHelper tries to distinguish if the
>> string contains HTML and then calls cObj->cropHTML() instead.
>>
>> additional info:
>> ----------------
>> unfortunately there is no way to let cObj choose which method to use.
>> usually you might call crop/cropHTML via stdWrap in TS, but then you
>> have to specify "crop" or "cropHTML" yourself as well.
>
> Which is IMHO the right way to do it? For me a "type" of "format" attribute would make more sense.
> Possible values are "text" and "html". If you really want magic you could add an "auto" value.

+1 for this solution. There's enough magic and there'll always be some edge-cases where it does not what is wanted.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en


More information about the TYPO3-project-typo3v4mvc mailing list