Forum Discussion

KaelaC's avatar
KaelaC
Lithium Alumni (Retired)
14 years ago

Stripping HTML from the message body returned by a rest call

I often want to truncate the message body returned by a REST call - sort of like making my own teaser.  This quick little freemarker code will clean out any HTML (so I don't end up with unclosed tags...