Gets or sets whether the document’s scripts run while it loads and converts. Default: false.
publicboolExecuteScripts{get;set;}
Remarks
When false, no script runs, inline or external, and no external script file is requested, whatever SkipExternalResources is set to. Content a script would generate is absent from the output.
When true, inline scripts run, and an external script file is a resource like any other: it loads only as SkipExternalResources and WhitelistedResources allow. Turn it on only for documents you trust.