[TYPO3-core] RFC #9879: enable charlist for trim function in stdWrap
Steffen Kamper
info at sk-typo3.de
Thu Dec 4 14:05:15 CET 2008
Hi,
Dmitry Dulepov schrieb:
> 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!)
>
well, that would lead that a bit to absurdum (double trim).
What if we allow specialChars like in regEx?
\s = space
\n = linebreak
\t = tab
etc
so it's possible to only trim * without whitespace trim.
vg Steffen
More information about the TYPO3-team-core
mailing list