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

Felix Oertel mehl at foertel.com
Fri May 28 18:44:42 CEST 2010


hey guys,

this is an SVN patch request.

Type: feature

Branches: trunk

BT reference:
-------------
http://forge.typo3.org/issues/show/7743

Problem:
--------
by now the format.crop viewHelper uses cObj->crop() which does not crop 
HTML right.

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.

we could talk about using regex to search for html, just tell me that 
you think.

regards, foertel


More information about the TYPO3-project-typo3v4mvc mailing list