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))
| 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. |
| 750 | func (ctx *RuntimeContext) OutFormatRaw(data interface{}, meta *output.Meta, prettyFn func(w io.Writer)) { |
| 751 | ctx.outFormat(data, meta, prettyFn, true) |
| 752 | } |
| 753 | |
| 754 | func (ctx *RuntimeContext) outFormat(data interface{}, meta *output.Meta, prettyFn func(w io.Writer), raw bool) { |
| 755 | outFn := ctx.Out |
no test coverage detected