I'm currently working on developing modules for a new e-mail 2.0 template. I'd like to URL encode content (titles, URLs, descriptions, et cetera) that our marketing team will add to fields on 2.0 modules so that we can include links for Facebook sharer, Tweets, LinkedIn Share Articles, and so on, right in our e-mail templates.
Is there a clever way to URL encode content added to string variable fields, so that we can use some bits of text like this:
- Shop Nike for shoes at
To produce an encoded URL, like this:
I'd love to see this as option on the variables themselves when you insert them, so that you can use the same string in multiple places, encoded and unencoded, but I'd settle for redundant fields if I had to.