MCPcopy
hub / github.com/larksuite/cli / OutFormatRaw

Method OutFormatRaw

shortcuts/common/runner.go:750–752  ·  view source on GitHub ↗

OutFormatRaw is like OutFormat but with HTML escaping disabled in JSON output. Use this when the data contains XML/HTML content that should be preserved as-is.

(data interface{}, meta *output.Meta, prettyFn func(w io.Writer))

Source from the content-addressed store, hash-verified

748// OutFormatRaw is like OutFormat but with HTML escaping disabled in JSON output.
749// Use this when the data contains XML/HTML content that should be preserved as-is.
750func (ctx *RuntimeContext) OutFormatRaw(data interface{}, meta *output.Meta, prettyFn func(w io.Writer)) {
751 ctx.outFormat(data, meta, prettyFn, true)
752}
753
754func (ctx *RuntimeContext) outFormat(data interface{}, meta *output.Meta, prettyFn func(w io.Writer), raw bool) {
755 outFn := ctx.Out

Callers 3

markdown_fetch.goFile · 0.80
markdown_diff.goFile · 0.80
executeFetchV2Function · 0.80

Calls 1

outFormatMethod · 0.95

Tested by

no test coverage detected