How to truncate a string after n number of words?

Share:

The result of the snippet:

Share: