Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Fixing handling of description in tooltip.
This closes #8938
  • Loading branch information
mcgilman authored Jun 7, 2024
1 parent 8fc9473 commit 1ea0bc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
var option = {
text: parameterContext.component.name,
value: parameterContext.id,
description: parameterContext.component.description
description: nfCommon.escapeHtml(parameterContext.component.description)
};

if (nfCommon.isDefinedAndNotNull(parentParameterContext) && parentParameterContext.id === parameterContext.id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
option = {
'text': parameterContext.component.name,
'value': parameterContext.id,
'description': parameterContext.component.description
'description': nfCommon.escapeHtml(parameterContext.component.description)
};
} else {
option = {
Expand Down Expand Up @@ -439,7 +439,7 @@
var option = {
'text': parameterContextEntity.component.name,
'value': parameterContextEntity.component.id,
'description': parameterContextEntity.component.description
'description': nfCommon.escapeHtml(parameterContextEntity.component.description)
};
options.push(option);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,7 @@
regTypeOptions.push({
text: nfCommon.substringAfterLast(type.type, '.') + ' (' + type.bundle.version + ')',
value: type.type,
description: type.description || ''
description: nfCommon.escapeHtml(type.description) || ''
});
});

Expand Down

0 comments on commit 1ea0bc1

Please sign in to comment.