Open Hamper opened 6 years ago
SetEscapeHTML()
only calls through to the fall-back "encoding/json".Encoder
from the standard library. The ffjson generated code always escapes the "HTML unsafe" characters.
If you encode a (non-pointer) struct it will use the fallback encoder because the generated code uses pointer receivers. If you want to use the fast ffjson encoder it will not respect the SetEscapeHTML()
call.
I made PR #249 as a possible fix.
With ffjson:
Without ffjson: