How to apply multiple Twig filters to text - SOLVED ** 

After continuing to play around with this I realized that I did not need to add nl2br, adding hacksaw was actually removing the formatting from the rich text field.  I opened a new question here
 if anyone can help or has encountered this issue any help would be appreciated.

**

I have a line

 &lt;p&gt;{{ workItem.summary | hacksaw(words='75', append='...') }}&lt;/p&gt;


I need to add 

 nl2br


to it.  I have tried

 &lt;p&gt;{{ workItem.summary | nl2br | hacksaw(words='75', append='...') }}&lt;/p&gt;


and

 &lt;p&gt;{{ nl2br (workItem.summary hacksaw(words='75', append='...')) }}&lt;/p&gt;


Neither worked.

Can anyone shed some light on the syntax I need to get this to work correctly?
I believe filters are applied in the order they're written. So in your example you're probably applying the new line breaks with nl2br and then removing them again with hacksaw.

Try:

&lt;p&gt;{{ workItem.summary | hacksaw(words='75', append='...') | nl2br }}&lt;/p&gt;


Alternatively you could try setting hacksaw to allow line break tags. Something like this (untested):

&lt;p&gt;{{ workItem.summary | nl2br | hacksaw(words='75', append='...', allow='&lt;br&gt;') }}&lt;/p&gt;


I'd go with the first option though.