alertmanager icon indicating copy to clipboard operation
alertmanager copied to clipboard

Labels containing double quotes are not escaped in UI

Open grobinson-grafana opened this issue 2 years ago • 1 comments

What did you do?

When an label contains double quotes, the double quotes are not escaped in the UI:

Screenshot 2023-07-11 at 5 41 17 pm

What did you expect to see?

The label label_with_quotes is shown as label_with_quotes=""Hello""" instead of label_with_quotes="\"Hello\"\"".

grobinson-grafana avatar Jul 11 '23 16:07 grobinson-grafana

I think it's not a bug as you sent

"labels": {
      "label_with_quotes": "\"Hello\"\""
 }

rather than

"labels": {
      "label_with_quotes": "\\\"Hello\\\"\\\""
 }

gameloser avatar Jul 15 '24 12:07 gameloser