Javascript in Invoice Designer not working

Version v5.11.7

Describe the error

I am not able to run js scripts to manipulate the design of the invoices. For testing purposes, I created a blank new invoice and added the following code to the footer code tab:

<div class="repeating-footerx" id="footer">
   <p data-ref="total_table-footer">$entity_footer</p>
        <script>
              console.log('Noob Output: ' + new Date().toLocaleTimeString() );  
        </script>
</div>

I get no output. It looks like javascript is not being called. Is there a setting to allow/disallow javascript?

Thank you very much for your help.
Indy

Hi,

Try adding DISABLE_PURIFY_HTML=true to the .env file

Hey hillel,

thats it. Thanks soo much!!

All the best,
indy