This PR modifies the JSON output behavior to prevent HTML escaping within custom MarshalJSON calls. By calling json.Marshal, the behavior is to use the default of escaping HTML characters. This PR introduces a marshal.JSON function that can be used as a drop-in replacement for json.Marshal with HTML escaping disabled.
This prevents things like Author: Keith <keith@example.com> from getting escaped unnecessarily to something like: Author: Keith <keith@example.com>
This PR modifies the JSON output behavior to prevent HTML escaping within custom
MarshalJSON
calls. By callingjson.Marshal
, the behavior is to use the default of escaping HTML characters. This PR introduces amarshal.JSON
function that can be used as a drop-in replacement forjson.Marshal
with HTML escaping disabled.This prevents things like
Author: Keith <keith@example.com>
from getting escaped unnecessarily to something like:Author: Keith <keith@example.com>
Depends on #223