text

Description

Converts contents to text-version email format.

 text( code )

 

Converts the content to a clean text-only format for use in the “Text Version” of a message. While similar to strip_tags(), this function is preferred for converting larger strings and entire messages for the purpose of creating text versions of messages. Used in association with the “rendered_html” var, you can convert the Zephyr-parsed HTML of a message to text-only format. The “rendered_html” var stores the complete HTML of a message as it is generated for delivery. This means link rewrites and resolved Zephyr parsing are included. This mimics the “Convert HTML to text” button the in the interface, in the event you’re creating a campaign from scratch via the API.

Example

 {text(rendered_html)} ---> [Text-only edition of your HTML message, including Zephyr parsing and link rewrites.]

Contact us

Top