WithSetEscapeHTML sets the SetEscapeHTML argument on the underlying json encoder
(escapeHTML bool)
| 54 | |
| 55 | // WithSetEscapeHTML sets the SetEscapeHTML argument on the underlying json encoder |
| 56 | func WithSetEscapeHTML(escapeHTML bool) Option { |
| 57 | return Option(func(h *handlerOptions) { |
| 58 | h.jsonResponseEscapeHTML = escapeHTML |
| 59 | }) |
| 60 | } |
| 61 | |
| 62 | // WithSetIndent sets the SetIndent argument on the underling json encoder |
| 63 | func WithSetIndent(prefix, indent string) Option { |
searching dependent graphs…