Skip to content

Commit 79241e0

Browse files
committed
Escape the special characters
Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
1 parent 85e761d commit 79241e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/samples/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ data:
3737
[
3838
{
3939
"tag": "text",
40-
"text": " {{ .Name | translate }}: {{ .Value }}"
40+
"text": " {{ .Name | translate }}: {{ .Value | escape }}"
4141
}
4242
],
4343
{{ end -}}
@@ -46,7 +46,7 @@ data:
4646
[
4747
{
4848
"tag": "text",
49-
"text": " {{ .Name | translate }}: {{ .Value }}"
49+
"text": " {{ .Name | translate }}: {{ .Value | escape }}"
5050
}
5151
],
5252
{{ end -}}

0 commit comments

Comments
 (0)