MCPcopy Index your code
hub / github.com/maruel/panicparse / escape

Function escape

stack/html.go:124–130  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

122}
123
124func escape(s string) template.URL {
125 // That's the only way I found to get the kind of escaping I wanted, where
126 // '/' is not escaped.
127 u := url.URL{Path: s}
128 /* #nosec G203 */
129 return template.URL(u.EscapedPath())
130}
131
132// getSrcBranchURL returns a link to the source on the web and the tag name for
133// the package version, if possible.

Callers 2

pkgURLFunction · 0.85
getSrcBranchURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…