Text Helpers
Text helpers transform text content from variables or any other strings.
Text
The main text
helper exposes all of the methods available on the String
built-in JavaScript object. You can use it to extract a part of text, replace characters, or split a text into multiple parts.
Here are a few examples of how you can use it.
Convert a string to lowercase
Convert First Name variable to lowercase
Convert string to uppercase
Split email address and get domain
Replace character in text
Extract a part of text
Extract first name from email address
Get a person's first name from the TO email address. The email address must contain the first name, and can be formatted as john.doe@briskine.com
or john@briskine.com
.
Capitalize
Capitalize the first letter of the string.
CapitalizeAll
Capitalize the first letter of each word in the string.
Domain
Extract and prettify the domain name from an email address. For example, if the recipient is contact@AWESOME-sweet-bakery.com
, this variable will print "Awesome Sweet Bakery".