@@ -195,6 +195,12 @@ class Azw3SaveOptionsData
195195 # Gets or sets a value indicating whether to use pretty formats output.
196196 attr_accessor :pretty_format
197197
198+ # Gets or sets the flag that indicates whether JavaScript will be removed from links.
199+ # Default is false.
200+ # If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
201+ # will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
202+ attr_accessor :remove_java_script_from_links
203+
198204 # Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
199205 # Default value is false.
200206 # By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
@@ -295,6 +301,7 @@ def self.attribute_map
295301 :'metafile_format' => :'MetafileFormat' ,
296302 :'office_math_output_mode' => :'OfficeMathOutputMode' ,
297303 :'pretty_format' => :'PrettyFormat' ,
304+ :'remove_java_script_from_links' => :'RemoveJavaScriptFromLinks' ,
298305 :'replace_backslash_with_yen_sign' => :'ReplaceBackslashWithYenSign' ,
299306 :'resolve_font_names' => :'ResolveFontNames' ,
300307 :'resource_folder' => :'ResourceFolder' ,
@@ -355,6 +362,7 @@ def self.swagger_types
355362 :'metafile_format' => :'String' ,
356363 :'office_math_output_mode' => :'String' ,
357364 :'pretty_format' => :'BOOLEAN' ,
365+ :'remove_java_script_from_links' => :'BOOLEAN' ,
358366 :'replace_backslash_with_yen_sign' => :'BOOLEAN' ,
359367 :'resolve_font_names' => :'BOOLEAN' ,
360368 :'resource_folder' => :'String' ,
@@ -560,6 +568,10 @@ def initialize(attributes = {})
560568 self . pretty_format = attributes [ :'PrettyFormat' ]
561569 end
562570
571+ if attributes . key? ( :'RemoveJavaScriptFromLinks' )
572+ self . remove_java_script_from_links = attributes [ :'RemoveJavaScriptFromLinks' ]
573+ end
574+
563575 if attributes . key? ( :'ReplaceBackslashWithYenSign' )
564576 self . replace_backslash_with_yen_sign = attributes [ :'ReplaceBackslashWithYenSign' ]
565577 end
@@ -840,6 +852,7 @@ def ==(other)
840852 metafile_format == other . metafile_format &&
841853 office_math_output_mode == other . office_math_output_mode &&
842854 pretty_format == other . pretty_format &&
855+ remove_java_script_from_links == other . remove_java_script_from_links &&
843856 replace_backslash_with_yen_sign == other . replace_backslash_with_yen_sign &&
844857 resolve_font_names == other . resolve_font_names &&
845858 resource_folder == other . resource_folder &&
@@ -859,7 +872,7 @@ def eql?(other)
859872 # Calculates hash code according to all attributes.
860873 # @return [Fixnum] Hash code
861874 def hash
862- [ allow_embedding_post_script_fonts , custom_time_zone_info_data , dml3_d_effects_rendering_mode , dml_effects_rendering_mode , dml_rendering_mode , file_name , iml_rendering_mode , update_ambiguous_text_font , update_created_time_property , update_fields , update_last_printed_property , update_last_saved_time_property , zip_output , allow_negative_indent , css_class_name_prefix , css_style_sheet_file_name , css_style_sheet_type , document_split_criteria , document_split_heading_level , encoding , export_document_properties , export_drop_down_form_field_as_text , export_font_resources , export_fonts_as_base64 , export_headers_footers_mode , export_images_as_base64 , export_language_information , export_list_labels , export_original_url_for_linked_images , export_page_margins , export_page_setup , export_relative_font_size , export_roundtrip_information , export_text_input_form_field_as_text , export_toc_page_numbers , export_xhtml_transitional , font_resources_subsetting_size_threshold , fonts_folder , fonts_folder_alias , html_version , image_resolution , images_folder , images_folder_alias , metafile_format , office_math_output_mode , pretty_format , replace_backslash_with_yen_sign , resolve_font_names , resource_folder , resource_folder_alias , scale_image_to_shape_size , table_width_output_mode , navigation_map_level , save_format ] . hash
875+ [ allow_embedding_post_script_fonts , custom_time_zone_info_data , dml3_d_effects_rendering_mode , dml_effects_rendering_mode , dml_rendering_mode , file_name , iml_rendering_mode , update_ambiguous_text_font , update_created_time_property , update_fields , update_last_printed_property , update_last_saved_time_property , zip_output , allow_negative_indent , css_class_name_prefix , css_style_sheet_file_name , css_style_sheet_type , document_split_criteria , document_split_heading_level , encoding , export_document_properties , export_drop_down_form_field_as_text , export_font_resources , export_fonts_as_base64 , export_headers_footers_mode , export_images_as_base64 , export_language_information , export_list_labels , export_original_url_for_linked_images , export_page_margins , export_page_setup , export_relative_font_size , export_roundtrip_information , export_text_input_form_field_as_text , export_toc_page_numbers , export_xhtml_transitional , font_resources_subsetting_size_threshold , fonts_folder , fonts_folder_alias , html_version , image_resolution , images_folder , images_folder_alias , metafile_format , office_math_output_mode , pretty_format , remove_java_script_from_links , replace_backslash_with_yen_sign , resolve_font_names , resource_folder , resource_folder_alias , scale_image_to_shape_size , table_width_output_mode , navigation_map_level , save_format ] . hash
863876 end
864877
865878 # Builds the object from hash
0 commit comments