Format length by word

Hi,

Is there a way to format a text not by characters count but by words ? Something like this :

<Format words=10>some text</Format>

Thank you !

Surprisingly, Format words doesn’t exist yet in the available format methods of the Format tag.

For the next version of L&L, we’re currently adding a new set of attributes for more flexible formatting. We’ll make sure to add words to trim by word count.

1 Like

Great thanks Eliot. Do you have any idea of the next release date with this feature ?
best

I made you a quick example of how to you can do it with javascript until the ‘words’ feature is released.

See here: Concatenate strings

Let me know if you need help with implementing it :smile:

This is an interesting piece of code. Thanks Mikkel, i’ll try it :slight_smile:

1 Like

The “words” attribute for format tag has been released today. Thanks L&L team, you’re the best :wink:

3 Likes