Forum Discussion
AdamN
13 years agoKhoros Alumni (Retired)
That's odd. I don't recall seeing anything like that before. How many characters is the string you're dealing with?
There's actually a newer method for truncating strings that you may want to check out to see if it works better for you:
http://lithosphere.lithium.com/t5/support-knowledge-base/Character-truncation-variables/ta-p/38324
Sign in to react to this post
Inactive User
13 years agoNot applicable
Nice. That's going to be helpful. Does it strip out html though?
Sign in to react to this post
- KaelaC13 years agoLithium Alumni (Retired)
For stripping out HTML you can use this new util:
Strips HTML using the google gdata html stripper, which does the following:
- Converts <br> and <p> tags to new lines
- Converts <li> tags to new line and adds a dash
- Strips remaining tags
- Adds newlines after 72 characters (for readability and conformance with email standards)
${utils.html.stripper.from.gdata.strip("<p>hello <b>world</b><strong>!</strong>")Sign in to react to this post