Beat that HTML Sanitization

I never liked HTML Sanitization in TIBCO Spotfire. Ever time I have a new CSS code to use, and damn -


What to do now ?
We have our savior : JavaScript. Wrap the style in this code and throw it as a JavaScript code -
if(!$('#AlienBox').length){
$('body').append($(`<style id="AlienBox">
//My CSS Code
</style>`, {
        id: 'AlienBox' 
   }));
}
This code basically adds the <style id="AlienBox"> to the <body> tag of Spotfire HTML.
Share: