Skip to main content

Multiple string filters

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

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 }}

Complete and current information on how to use NationBuilder is available in the documentation section.

Share this post

Showing 2 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.