I am trying to present a blurb of an event intro in a block on the front page. I need it to be stripped of HTML and truncated to 30 words. How do I string two text output filters together in the liquid output variable?
Official response from John Quealy
Multiple string filters can be used on one output. They are applied from left to right.
For example:{{ page.event.content | strip_html | truncatewords:30 }}
Share this post
Showing 2 reactions
Sign in with