Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,11 @@ By default, a _word_ will not be truncated. Set the optional boolean after the c
<p>
{{ text | characters:25 :true}}
</p>
```
```

Filters can also be chained together. It will truncate after 25 words or before 25 words if the 100 character limit is reached.
```html
<p>
{{ text | words:25 | characters: 100}}
</p>
```