Skip to content

Commit

Permalink
Merge pull request #5903 from Countly/SER-2255-escaped-html-character…
Browse files Browse the repository at this point in the history
…s-in-feedback-and-rating-widget-lists-release-branch

[SER-2255] escaped html characters in feedback and rating widget lists release branch
  • Loading branch information
ArtursKadikis authored Jan 13, 2025
2 parents ef9ebce + dbc39d4 commit 9f7f5bd
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*global countlyCommon, app, jQuery, $*/
/*global countlyCommon, app, jQuery,_ $*/
(function(starRatingPlugin) {
var _pv = {};
// feedbackd datas
Expand Down Expand Up @@ -271,6 +271,15 @@
app_id: countlyCommon.ACTIVE_APP_ID
},
success: function(json) {
// unescape the properties shown in the list
json.forEach(row => {
if (typeof row?.internalName === "string") {
row.internalName = countlyCommon.unescapeHtml(row.internalName);
}
if (typeof row?.targeting?.user_segmentation === "string") {
row.targeting.user_segmentation = countlyCommon.unescapeHtml(row.targeting.user_segmentation);
}
});
_fwd = json;
}
});
Expand Down

0 comments on commit 9f7f5bd

Please sign in to comment.