Identify pipeline entries in reports and diagnostics
This commit is contained in:
@@ -2,6 +2,7 @@ package reporting
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"html"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
@@ -171,6 +172,7 @@ func recoveryReasons(records []RecoveryRecord) map[string]int {
|
||||
}
|
||||
|
||||
func escapeMarkdown(value string) string {
|
||||
value = html.EscapeString(value)
|
||||
value = strings.ReplaceAll(value, "\\", "\\\\")
|
||||
value = strings.ReplaceAll(value, "|", "\\|")
|
||||
value = strings.ReplaceAll(value, "`", "\\`")
|
||||
|
||||
Reference in New Issue
Block a user