diff --git a/ui-ngx/src/app/shared/models/js-function.models.ts b/ui-ngx/src/app/shared/models/js-function.models.ts index 5bfa50de6f..c4b38777c2 100644 --- a/ui-ngx/src/app/shared/models/js-function.models.ts +++ b/ui-ngx/src/app/shared/models/js-function.models.ts @@ -98,7 +98,7 @@ export const loadModuleMarkdownDescription = (http: HttpClient, translate: Trans } else { propDescription += `
const ${propName}: ${type}`;
if (type !== 'object') {
- propDescription += ` = ${prop}`;
+ propDescription += ` = ${type === 'string' ? handleHtmlSpecialChars(prop) : prop}`;
}
propDescription += '