@@ -529,6 +529,9 @@ public TableWidthOutputModeEnum read(final JsonReader jsonReader) throws IOExcep
529529 @ SerializedName ("PrettyFormat" )
530530 protected Boolean prettyFormat ;
531531
532+ @ SerializedName ("RemoveJavaScriptFromLinks" )
533+ protected Boolean removeJavaScriptFromLinks ;
534+
532535 @ SerializedName ("ReplaceBackslashWithYenSign" )
533536 protected Boolean replaceBackslashWithYenSign ;
534537
@@ -1187,6 +1190,28 @@ public void setPrettyFormat(Boolean prettyFormat) {
11871190 }
11881191
11891192
1193+ /**
1194+ * Gets or sets the flag that indicates whether JavaScript will be removed from links.
1195+ * Default is false.
1196+ * If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
1197+ * will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
1198+ * @return removeJavaScriptFromLinks
1199+ **/
1200+ @ ApiModelProperty (value = "Gets or sets the flag that indicates whether JavaScript will be removed from links. Default is false. 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." )
1201+ public Boolean getRemoveJavaScriptFromLinks () {
1202+ return removeJavaScriptFromLinks ;
1203+ }
1204+
1205+ public HtmlSaveOptionsData removeJavaScriptFromLinks (Boolean removeJavaScriptFromLinks ) {
1206+ this .removeJavaScriptFromLinks = removeJavaScriptFromLinks ;
1207+ return this ;
1208+ }
1209+
1210+ public void setRemoveJavaScriptFromLinks (Boolean removeJavaScriptFromLinks ) {
1211+ this .removeJavaScriptFromLinks = removeJavaScriptFromLinks ;
1212+ }
1213+
1214+
11901215 /**
11911216 * Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
11921217 * Default value is false.
@@ -1341,6 +1366,7 @@ public HtmlSaveOptionsData() {
13411366 this .metafileFormat = null ;
13421367 this .officeMathOutputMode = null ;
13431368 this .prettyFormat = null ;
1369+ this .removeJavaScriptFromLinks = null ;
13441370 this .replaceBackslashWithYenSign = null ;
13451371 this .resolveFontNames = null ;
13461372 this .resourceFolder = null ;
@@ -1413,6 +1439,7 @@ public boolean equals(java.lang.Object o) {
14131439 Objects .equals (this .metafileFormat , htmlSaveOptionsData .metafileFormat ) &&
14141440 Objects .equals (this .officeMathOutputMode , htmlSaveOptionsData .officeMathOutputMode ) &&
14151441 Objects .equals (this .prettyFormat , htmlSaveOptionsData .prettyFormat ) &&
1442+ Objects .equals (this .removeJavaScriptFromLinks , htmlSaveOptionsData .removeJavaScriptFromLinks ) &&
14161443 Objects .equals (this .replaceBackslashWithYenSign , htmlSaveOptionsData .replaceBackslashWithYenSign ) &&
14171444 Objects .equals (this .resolveFontNames , htmlSaveOptionsData .resolveFontNames ) &&
14181445 Objects .equals (this .resourceFolder , htmlSaveOptionsData .resourceFolder ) &&
@@ -1424,7 +1451,7 @@ public boolean equals(java.lang.Object o) {
14241451
14251452 @ Override
14261453 public int hashCode () {
1427- return Objects .hash (allowNegativeIndent , cssClassNamePrefix , cssStyleSheetFileName , cssStyleSheetType , documentSplitCriteria , documentSplitHeadingLevel , encoding , exportDocumentProperties , exportDropDownFormFieldAsText , exportFontResources , exportFontsAsBase64 , exportHeadersFootersMode , exportImagesAsBase64 , exportLanguageInformation , exportListLabels , exportOriginalUrlForLinkedImages , exportPageMargins , exportPageSetup , exportRelativeFontSize , exportRoundtripInformation , exportTextInputFormFieldAsText , exportTocPageNumbers , exportXhtmlTransitional , fontResourcesSubsettingSizeThreshold , fontsFolder , fontsFolderAlias , htmlVersion , imageResolution , imagesFolder , imagesFolderAlias , metafileFormat , officeMathOutputMode , prettyFormat , replaceBackslashWithYenSign , resolveFontNames , resourceFolder , resourceFolderAlias , scaleImageToShapeSize , tableWidthOutputMode , super .hashCode ());
1454+ return Objects .hash (allowNegativeIndent , cssClassNamePrefix , cssStyleSheetFileName , cssStyleSheetType , documentSplitCriteria , documentSplitHeadingLevel , encoding , exportDocumentProperties , exportDropDownFormFieldAsText , exportFontResources , exportFontsAsBase64 , exportHeadersFootersMode , exportImagesAsBase64 , exportLanguageInformation , exportListLabels , exportOriginalUrlForLinkedImages , exportPageMargins , exportPageSetup , exportRelativeFontSize , exportRoundtripInformation , exportTextInputFormFieldAsText , exportTocPageNumbers , exportXhtmlTransitional , fontResourcesSubsettingSizeThreshold , fontsFolder , fontsFolderAlias , htmlVersion , imageResolution , imagesFolder , imagesFolderAlias , metafileFormat , officeMathOutputMode , prettyFormat , removeJavaScriptFromLinks , replaceBackslashWithYenSign , resolveFontNames , resourceFolder , resourceFolderAlias , scaleImageToShapeSize , tableWidthOutputMode , super .hashCode ());
14281455 }
14291456
14301457 @ Override
@@ -1477,6 +1504,7 @@ public String toString() {
14771504 sb .append (" metafileFormat: " ).append (toIndentedString (getMetafileFormat ())).append ("\n " );
14781505 sb .append (" officeMathOutputMode: " ).append (toIndentedString (getOfficeMathOutputMode ())).append ("\n " );
14791506 sb .append (" prettyFormat: " ).append (toIndentedString (getPrettyFormat ())).append ("\n " );
1507+ sb .append (" removeJavaScriptFromLinks: " ).append (toIndentedString (getRemoveJavaScriptFromLinks ())).append ("\n " );
14801508 sb .append (" replaceBackslashWithYenSign: " ).append (toIndentedString (getReplaceBackslashWithYenSign ())).append ("\n " );
14811509 sb .append (" resolveFontNames: " ).append (toIndentedString (getResolveFontNames ())).append ("\n " );
14821510 sb .append (" resourceFolder: " ).append (toIndentedString (getResourceFolder ())).append ("\n " );
0 commit comments