The invoice preview crashes after i select a customized print format

i customized a print format and i added an HTML script in it. after a certain updated it started to crash whenever i select that print format.

Hello @wael_gamal,

Please also share HTML of Print Format here. You can paste it directly or share it via pastebin.com or dpaste.com