words not wrapping when using tokens | Community
Skip to main content
Sarah_Swanson
Level 1
July 22, 2016
Question

words not wrapping when using tokens

  • July 22, 2016
  • 2 replies
  • 1338 views

Hi Everyone,

I've created a form that allows prospects to fill in lengthy text responses. In turn, I've used tokens to display these responses in an email alert to stakeholders.  When the tokens render the responses they never word wrap in the email.  It just is a long string of words that expands the email parameters the length of the text.  I've put in the code that marketo suggested:

stackoverflow.com/questions/4689481/html-css-have-border-wrap-around-text

developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap

So, far nothing has worked.  See how the 9's stretch out the borders of the email?  Help please!

thank you in advance!

2 replies

SydneyMulligan
Level 7
July 22, 2016

Is the text in a table or div with a defined width? If not, it will just keep on stretching.

February 6, 2017

Hi Sarah,

Put your text in <div> with break-word CSS.

Example: 99999999999999999999999999999999999999999999

Wrap this text  in following element:

<div style="overflow-wrap: break-word">99999999999999999999999999999999999999999999</div>

Put this code into the token and it works fine.