SvgSaveOptions.RemoveJavaScriptFromLinks

SvgSaveOptions 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 javascriptvoid0.

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)”.

public bool RemoveJavaScriptFromLinks { get; set; }

Examples

Shows how to specify whether JavaScript will be removed from links in SVG format.

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

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "SvgSaveOptions.RemoveJavaScriptFromLinks.svg", svgSaveOptions)
    .Execute();

See Also