0 Replies Latest reply on Jul 21, 2015 11:09 AM by Scott A Johnson

    How to keep Javascript from macros from being displayed in thumbnail snippet?

    Scott A Johnson

      Hey gang,

       

      We've got a few macros which render into javascript in the content. We've noticed that in the Content browse page, when viewing in Thumbnail view, the content text snippet has the script tags stripped out, but is leaving the javascript itself in place and displays as part of the snippet.

       

      The tag stripping occurs in the StringUtils.stripTags method, but doesn't take into consideration non-visible elements like scripts.

       

      Has any one else encountered this issue? Any alternate way to fix it than to customize the StringUtils class?

       

      Thanks,

      Scott