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 c4b38777c2..049d8f4b84 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 += ` = ${type === 'string' ? handleHtmlSpecialChars(prop) : prop}`; + propDescription += ' = ' + (type === 'string' ? `"${handleHtmlSpecialChars(prop)}"` : `${prop}`); } propDescription += '

'; }