Re: words not wrapping when using tokens

Sarah_Swanson
Level 1

words not wrapping when using tokens

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:

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

https://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!

Capture.JPG

thank you in advance!

2 REPLIES 2
SydneyMulligan
Level 10 - Champion Alumni

Re: words not wrapping when using tokens

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

Anonymous
Not applicable

Re: words not wrapping when using tokens

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.