APIs & Integrations

BeccaArmistead
HubSpot Employee
HubSpot Employee

Word Count / Character Count for Blog Titles

Submitting on behalf of a customer:

Hello, I am looking to use a HubL filter to get a character count for my blog titles. I can see on this developer doc < http://designers.hubspot.com/docs/hubl/hubl-supported-filters > that you can get a wordcount for a string, but is there a way to get a character count?

Thanks!

0 Upvotes
1 Reply 1
3PETE
HubSpot Employee
HubSpot Employee

Word Count / Character Count for Blog Titles

@rarmistead It works the say way for counting characters of a string!

ex:
{% set services = ‘Peter’ %}
{{ services|length }}

0 Upvotes