jinja2 template check if variable is a byte array code example
Example: jinja2 truncate string
{{ title|truncate(1000, True, '...') }}
<!-- with length=1000(default=255), killwords=True(default=False), end='...' -->
{{ title|truncate(1000, True, '...') }}
<!-- with length=1000(default=255), killwords=True(default=False), end='...' -->