removeJavaScriptFromLinks property

Specifies whether JavaScript will be removed from links. Default is false. If this option is enabled, all links containing JavaScript will be replaced with “javascript:void(0)”.

get removeJavaScriptFromLinks(): boolean

Examples

Shows how to remove JavaScript from the links (svg).

let doc = new aw.Document(base.myDir + "JavaScript in HREF.docx");

let saveOptions = new aw.Saving.SvgSaveOptions();
saveOptions.removeJavaScriptFromLinks = true;

doc.save(base.artifactsDir + "SvgSaveOptions.RemoveJavaScriptFromLinksSvg.html", saveOptions);

See Also