Skip to content

Commit 20ee4d2

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 073a88a + 7d58393 commit 20ee4d2

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

README.md

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

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

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

include/aspose_words_cloud/models/html_save_options_data.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,23 @@ namespace aspose::words::cloud::models {
520520
ASPOSE_WORDS_CLOUD_EXPORT virtual void setPrettyFormat(std::shared_ptr< bool > value);
521521

522522

523+
/// <summary>
524+
/// Gets or sets the flag that indicates whether JavaScript will be removed from links.
525+
/// Default is false.
526+
/// If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
527+
/// will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
528+
/// </summary>
529+
ASPOSE_WORDS_CLOUD_EXPORT virtual std::shared_ptr< bool > getRemoveJavaScriptFromLinks() const;
530+
531+
/// <summary>
532+
/// Gets or sets the flag that indicates whether JavaScript will be removed from links.
533+
/// Default is false.
534+
/// If this option is enabled, all links containing JavaScript (e.g., links with "javascript:" in the href attribute)
535+
/// will be replaced with "javascript:void(0)". This can help prevent potential security risks, such as XSS attacks.
536+
/// </summary>
537+
ASPOSE_WORDS_CLOUD_EXPORT virtual void setRemoveJavaScriptFromLinks(std::shared_ptr< bool > value);
538+
539+
523540
/// <summary>
524541
/// Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
525542
/// Default value is false.
@@ -637,6 +654,7 @@ namespace aspose::words::cloud::models {
637654
std::shared_ptr< aspose::words::cloud::models::HtmlSaveOptionsData::MetafileFormat > m_MetafileFormat;
638655
std::shared_ptr< aspose::words::cloud::models::HtmlSaveOptionsData::OfficeMathOutputMode > m_OfficeMathOutputMode;
639656
std::shared_ptr< bool > m_PrettyFormat;
657+
std::shared_ptr< bool > m_RemoveJavaScriptFromLinks;
640658
std::shared_ptr< bool > m_ReplaceBackslashWithYenSign;
641659
std::shared_ptr< bool > m_ResolveFontNames;
642660
std::shared_ptr< std::wstring > m_ResourceFolder;

src/api_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ namespace aspose::words::cloud {
168168

169169
::httplib::Headers headers;
170170
headers.emplace("Authorization", m_AccessToken);
171-
headers.emplace("x-aspose-client-version", "25.5");
171+
headers.emplace("x-aspose-client-version", "25.6");
172172
headers.emplace("x-aspose-client", "C++ SDK");
173173

174174
for (auto& pair : httpRequest->getHeaders()) {

src/models.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11834,6 +11834,9 @@ namespace aspose::words::cloud::models {
1183411834
if (this->m_PrettyFormat) {
1183511835
json["PrettyFormat"] = *(this->m_PrettyFormat);
1183611836
}
11837+
if (this->m_RemoveJavaScriptFromLinks) {
11838+
json["RemoveJavaScriptFromLinks"] = *(this->m_RemoveJavaScriptFromLinks);
11839+
}
1183711840
if (this->m_ReplaceBackslashWithYenSign) {
1183811841
json["ReplaceBackslashWithYenSign"] = *(this->m_ReplaceBackslashWithYenSign);
1183911842
}
@@ -12026,6 +12029,11 @@ namespace aspose::words::cloud::models {
1202612029
json["PrettyFormat"].get< bool >()
1202712030
);
1202812031
}
12032+
if (json.contains("RemoveJavaScriptFromLinks") && !json["RemoveJavaScriptFromLinks"].is_null()) {
12033+
this->m_RemoveJavaScriptFromLinks = std::make_shared< bool >(
12034+
json["RemoveJavaScriptFromLinks"].get< bool >()
12035+
);
12036+
}
1202912037
if (json.contains("ReplaceBackslashWithYenSign") && !json["ReplaceBackslashWithYenSign"].is_null()) {
1203012038
this->m_ReplaceBackslashWithYenSign = std::make_shared< bool >(
1203112039
json["ReplaceBackslashWithYenSign"].get< bool >()
@@ -12435,6 +12443,17 @@ namespace aspose::words::cloud::models {
1243512443
}
1243612444

1243712445

12446+
std::shared_ptr< bool > HtmlSaveOptionsData::getRemoveJavaScriptFromLinks() const
12447+
{
12448+
return this->m_RemoveJavaScriptFromLinks;
12449+
}
12450+
12451+
void HtmlSaveOptionsData::setRemoveJavaScriptFromLinks(std::shared_ptr< bool > value)
12452+
{
12453+
this->m_RemoveJavaScriptFromLinks = value;
12454+
}
12455+
12456+
1243812457
std::shared_ptr< bool > HtmlSaveOptionsData::getReplaceBackslashWithYenSign() const
1243912458
{
1244012459
return this->m_ReplaceBackslashWithYenSign;

0 commit comments

Comments
 (0)