I've seen a couple of functions in the WordPress source that do just that.
Maybe borrow from them and implement it as a Zend filter?

- Alex

On Thu, Mar 5, 2009 at 11:04 AM, Alex <[email protected]> wrote:

> I've seen a couple of functions in the WordPress source that do just that.
> Maybe borrow from them and implement it as a Zend filter?
>
> - Alex
>
>
>
> On Thu, Mar 5, 2009 at 10:58 AM, vadim gavrilov <[email protected]>wrote:
>
>> You can do that yourself. I mean even using trim will trim out the leading
>> and trialing spaces.
>>
>>
>> On Thu, Mar 5, 2009 at 3:56 PM, Baptiste Placé <
>> [email protected]> wrote:
>>
>>> Hello,
>>>
>>> I have a simple idea for a filter proposal :
>>> Break words of a text that are too long by adding space characters. This
>>> can be usefull when creating comment form and avoid the annoying guy who
>>> just want to make the html layout go crazy.
>>>
>>> One other thing that may be usefull is replacing 3 or more consecutive
>>> new lines by one or two - or whatever character.
>>>
>>> Hope this is clear enough :)
>>> Does this deserve a proposal ? The code is quite small.
>>>
>>> Baptiste
>>>
>>
>>
>>
>> --
>> Vincent Gabriel.
>> Lead Developer, Senior Support.
>> Zend Certified Engineer.
>>
>>
>>
>>
>>
>

Reply via email to