$core_v2_language.Truncate is changing Embeddable tags

When using core_v2_language.Truncate($body, 450, "%{ Ellipsis='...', MaintainHtmlFormatting='True' }")) our embeddable code is getting HTML tags stripped. 

Using Truncate: 

Without Truncate: 

Parents Reply
  • Former Member
    +1 Former Member in reply to Stephen Vicino

    The Truncate function uses our HtmlSanitizer. The same sanitizer all user content passes through.  If you want your content to be able to be shortened, but maintain full functionality including script tags, you will likely need to provide your own truncate functionality that is aware of the format of that embeddable and how to shorten it while maintaining its functionality.

Children