MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / writeHTMLHeaderLine

Function writeHTMLHeaderLine

internal/outbound/forward.go:272–281  ·  view source on GitHub ↗
(buf *strings.Builder, name, value string)

Source from the content-addressed store, hash-verified

270}
271
272func writeHTMLHeaderLine(buf *strings.Builder, name, value string) {
273 if value == "" {
274 return
275 }
276 buf.WriteString("<b>")
277 buf.WriteString(name)
278 buf.WriteString(":</b> ")
279 buf.WriteString(htmlEscape(value))
280 buf.WriteString("<br>\r\n")
281}
282
283// htmlEscape is a tiny subset of html.EscapeString — sufficient for
284// the four characters that can break a blockquote. Avoids pulling in

Callers 1

BuildForwardHTMLBodyFunction · 0.85

Calls 1

htmlEscapeFunction · 0.85

Tested by

no test coverage detected