alertmanager
alertmanager copied to clipboard
Labels containing double quotes are not escaped in UI
What did you do?
When an label contains double quotes, the double quotes are not escaped in the UI:
What did you expect to see?
The label label_with_quotes is shown as label_with_quotes=""Hello""" instead of label_with_quotes="\"Hello\"\"".
I think it's not a bug as you sent
"labels": {
"label_with_quotes": "\"Hello\"\""
}
rather than
"labels": {
"label_with_quotes": "\\\"Hello\\\"\\\""
}