RemoveJavaScriptFromLinks

Gibt an, ob JavaScript aus Links entfernt wird. Standard istFALSCH . Wenn diese Option aktiviert ist, werden alle Links, die JavaScript enthalten, durch “javascript:void(0)” ersetzt.

public bool RemoveJavaScriptFromLinks { get; set; }

Beispiele

Zeigt, wie JavaScript aus den Links entfernt wird (SVG).

Document doc = new Document(MyDir + "JavaScript in HREF.docx");

SvgSaveOptions saveOptions = new SvgSaveOptions();
saveOptions.RemoveJavaScriptFromLinks = true;

doc.Save(ArtifactsDir + "SvgSaveOptions.RemoveJavaScriptFromLinksSvg.html", saveOptions);

Siehe auch