diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts index e582099363..2e9215edd3 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts @@ -677,17 +677,25 @@ export class TbDeviceInstallDialogComponent extends DialogComponent string = value => value): string { return content.replace(/\$\{([^}]+)}/g, (_match, key) => { const res = this.resolveVariable(key); if (res) { - return res; + return escape(res); } return '${' + key + '}'; }); @@ -1021,7 +1030,9 @@ export class TbDeviceInstallDialogComponent extends DialogComponent JSON.stringify(value).slice(1, -1))); } private _resolveMarkdownVariable(key: string): string | undefined {