Liquex.Filter.truncate

You're seeing just the function truncate, go back to Liquex.Filter module for more information.
Link to this function

truncate(value, length, ellipsis \\ "...", _)

View Source

Shortens a string down to the number of characters passed as an argument. If the specified number of characters is less than the length of the string, an ellipsis (…) is appended to the string and is included in the character count.

Examples

iex> Liquex.Filter.truncate("Ground control to Major Tom.", 20, %{})
"Ground control to..."

iex> Liquex.Filter.truncate("Ground control to Major Tom.", 25, ", and so on", %{})
"Ground control, and so on"

iex> Liquex.Filter.truncate("Ground control to Major Tom.", 20, "", %{})
"Ground control to Ma"