[TYPO3-core] RFC #9879: enable charlist for trim function in stdWrap

Dmitry Dulepov dmitry at typo3.org
Thu Dec 4 13:15:41 CET 2008


Hi!

Georg Ringer wrote:
> Of course you are right, it would be nice to have this also available
> 
> I attached a new version of the patch.

My idea: instead of

$check = explode('|', $conf['trim.']['charList']);
if (count($check)==3) {
	$content=trim($content, $check[1]);
} else {
	$content=trim($content, $conf['trim.']['charList']);
}

we can do:

$content = trim($content, trim($conf['trim.']['charList'], '|'));

(untested!)

-- 
Dmitry Dulepov
TYPO3 core team
In the blog: http://typo3bloke.net/post-details/zend_debugger_goes_64_bit_on_mac_os_x/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book


More information about the TYPO3-team-core mailing list