Knowledge Base Article

Render HTML In Pivot Table

widget.on('ready', function(){
     var tags = $('tbody span:contains("<")');
     for(var i = 0; i<tags.length; i++){
         $(tags[i]).replaceWith(String(tags[i].textContent))
     }
});
BEFORE
AFTER

Challenge

Sisense Pivot Tables do not render HTML if it is coming in as a string from an elasticube or live data source.

Solution

Paste the script above into your Pivot Table's "Edit Script" environment.
Updated 03-02-2023
No CommentsBe the first to comment