remove_java_script_from_links property
HtmlSaveOptions.remove_java_script_from_links property
Specifies whether JavaScript will be removed from links.
Default is False
.
@property
def remove_java_script_from_links(self) -> bool:
...
@remove_java_script_from_links.setter
def remove_java_script_from_links(self, value: bool):
...
Remarks
If this option is enabled, all links containing JavaScript (e.g., links with “javascript:” in the href attribute) will be replaced with “javascript:void(0)”. This can help prevent potential security risks, such as XSS attacks.
See Also
- module aspose.words.saving
- class HtmlSaveOptions