<%= excerpt(@trees, "lovely", 8) %>

I had the below string

@trees = ‘A poem lovely as a tree.’

On which except is applied

<%= excerpt(@trees, “lovely”, 8) %>

And the resultant is
…A poem lovely as a tre…

I wasn’t able to figure out how.

Regards,
Piyush G.
99161-33729