Skip to content

Commit 9752502

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents a3aab84 + b252fb8 commit 9752502

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
1616
- Add & remove watermarks and protection.
1717
- Read & write access to Document Object Model.
1818

19+
## Enhancements in Version 25.6
20+
21+
- Added support for SVG images format in Watermark API.
22+
- Added 'RemoveJavaScriptFromLinks' property for HtmlSaveOptionsData class.
23+
24+
1925
## Enhancements in Version 25.5
2026

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposewordscloud",
3-
"version": "25.5.0",
3+
"version": "25.6.0",
44
"description": "Aspose.Words Cloud SDK for Node.js",
55
"homepage": "https://products.aspose.cloud/words/cloud",
66
"author": {

src/internal/requestHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async function invokeApiMethodInternal(requestOptions: request.OptionsWithUri, c
131131
requestOptions.timeout = 1000 * confguration.timeout;
132132

133133
requestOptions.headers["x-aspose-client"] = "nodejs sdk";
134-
requestOptions.headers["x-aspose-client-version"] = "25.5";
134+
requestOptions.headers["x-aspose-client-version"] = "25.6";
135135
requestOptions.encoding = null;
136136

137137
requestOptions.uri = encodeURI(requestOptions.uri.toString());

src/model/htmlSaveOptionsData.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ export class HtmlSaveOptionsData extends SaveOptionsData {
206206
baseName: "PrettyFormat",
207207
type: "boolean",
208208
},
209+
{
210+
name: "removeJavaScriptFromLinks",
211+
baseName: "RemoveJavaScriptFromLinks",
212+
type: "boolean",
213+
},
209214
{
210215
name: "replaceBackslashWithYenSign",
211216
baseName: "ReplaceBackslashWithYenSign",
@@ -424,6 +429,14 @@ export class HtmlSaveOptionsData extends SaveOptionsData {
424429
*/
425430
public prettyFormat: boolean;
426431

432+
/**
433+
* Gets or sets the flag that indicates whether JavaScript will be removed from links.
434+
* Default is false.
435+
* If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
436+
* will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
437+
*/
438+
public removeJavaScriptFromLinks: boolean;
439+
427440
/**
428441
* Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
429442
* Default value is false.

0 commit comments

Comments
 (0)