Skip to content

Commit ad2a285

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents bdcb9f9 + 7d225f4 commit ad2a285

8 files changed

+47
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [25.6.0] - Aspose Words Cloud for Dart 25.6 Release Notes
2+
3+
- Added support for SVG images format in Watermark API.
4+
- Added 'RemoveJavaScriptFromLinks' property for HtmlSaveOptionsData class.
5+
6+
17
## [25.5.0] - Aspose Words Cloud for Dart 25.5 Release Notes
28

39
- Added data models support for classes 'CommentRangeStart', 'CommentRangeEnd'.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Add this dependency to your *pubspec.yaml*:
2727

2828
```yaml
2929
dependencies:
30-
aspose_words_cloud: 25.5.0
30+
aspose_words_cloud: 25.6.0
3131
```
3232
3333
## Getting Started

lib/src/api_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ class ApiClient {
518518
}
519519

520520
httpRequest.headers['x-aspose-client'] = 'dart sdk';
521-
httpRequest.headers['x-aspose-client-version'] = '25.5';
521+
httpRequest.headers['x-aspose-client-version'] = '25.6';
522522
httpRequest.headers['Authorization'] = await _getAuthToken();
523523
httpRequest.headers.addAll(requestData.headers);
524524

lib/src/models/azw3_save_options_data.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ class Azw3SaveOptionsData extends HtmlSaveOptionsData {
382382
prettyFormat = null;
383383
}
384384

385+
if (json.containsKey('RemoveJavaScriptFromLinks')) {
386+
removeJavaScriptFromLinks = json['RemoveJavaScriptFromLinks'] as bool;
387+
} else {
388+
removeJavaScriptFromLinks = null;
389+
}
390+
385391
if (json.containsKey('ReplaceBackslashWithYenSign')) {
386392
replaceBackslashWithYenSign = json['ReplaceBackslashWithYenSign'] as bool;
387393
} else {

lib/src/models/epub_save_options_data.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ class EpubSaveOptionsData extends HtmlSaveOptionsData {
382382
prettyFormat = null;
383383
}
384384

385+
if (json.containsKey('RemoveJavaScriptFromLinks')) {
386+
removeJavaScriptFromLinks = json['RemoveJavaScriptFromLinks'] as bool;
387+
} else {
388+
removeJavaScriptFromLinks = null;
389+
}
390+
385391
if (json.containsKey('ReplaceBackslashWithYenSign')) {
386392
replaceBackslashWithYenSign = json['ReplaceBackslashWithYenSign'] as bool;
387393
} else {

lib/src/models/html_save_options_data.dart

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,16 @@ class HtmlSaveOptionsData extends SaveOptionsData {
276276
set prettyFormat(bool? val) => _prettyFormat = val;
277277

278278

279+
/// Gets or sets the flag that indicates whether JavaScript will be removed from links.
280+
/// Default is false.
281+
/// If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
282+
/// will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
283+
bool? _removeJavaScriptFromLinks;
284+
285+
bool? get removeJavaScriptFromLinks => _removeJavaScriptFromLinks;
286+
set removeJavaScriptFromLinks(bool? val) => _removeJavaScriptFromLinks = val;
287+
288+
279289
/// Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
280290
/// Default value is false.
281291
/// By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
@@ -667,6 +677,12 @@ class HtmlSaveOptionsData extends SaveOptionsData {
667677
prettyFormat = null;
668678
}
669679

680+
if (json.containsKey('RemoveJavaScriptFromLinks')) {
681+
removeJavaScriptFromLinks = json['RemoveJavaScriptFromLinks'] as bool;
682+
} else {
683+
removeJavaScriptFromLinks = null;
684+
}
685+
670686
if (json.containsKey('ReplaceBackslashWithYenSign')) {
671687
replaceBackslashWithYenSign = json['ReplaceBackslashWithYenSign'] as bool;
672688
} else {
@@ -882,6 +898,10 @@ class HtmlSaveOptionsData extends SaveOptionsData {
882898
_result['PrettyFormat'] = prettyFormat!;
883899
}
884900

901+
if (removeJavaScriptFromLinks != null) {
902+
_result['RemoveJavaScriptFromLinks'] = removeJavaScriptFromLinks!;
903+
}
904+
885905
if (replaceBackslashWithYenSign != null) {
886906
_result['ReplaceBackslashWithYenSign'] = replaceBackslashWithYenSign!;
887907
}

lib/src/models/mhtml_save_options_data.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@ class MhtmlSaveOptionsData extends HtmlSaveOptionsData {
383383
prettyFormat = null;
384384
}
385385

386+
if (json.containsKey('RemoveJavaScriptFromLinks')) {
387+
removeJavaScriptFromLinks = json['RemoveJavaScriptFromLinks'] as bool;
388+
} else {
389+
removeJavaScriptFromLinks = null;
390+
}
391+
386392
if (json.containsKey('ReplaceBackslashWithYenSign')) {
387393
replaceBackslashWithYenSign = json['ReplaceBackslashWithYenSign'] as bool;
388394
} else {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: aspose_words_cloud
22
description: This package allows you to work with Aspose.Words Cloud REST APIs in your Dart applications quickly and easily, with zero initial cost.
3-
version: 25.5.0
3+
version: 25.6.0
44
homepage: https://github.com/aspose-words-cloud/aspose-words-cloud-dart
55

66
environment:

0 commit comments

Comments
 (0)