tidwall / gjson

Get JSON values quickly - JSON parser for Go
MIT License
14.11k stars 846 forks source link

Undocumented change to non-HTML escaped strings #365

Open RichardoC opened 1 month ago

RichardoC commented 1 month ago

Can this behaviour please be documented and warned of in the main readme and function comments?

Current users might be relying on the sanitised return values and wouldn't be expecting this to change in a patch version.

https://github.com/tidwall/gjson/commit/28d458b14c40df6321bba23bcb39579d468f5e97

Thanks!

tidwall commented 1 month ago

You are right. After further consideration I change the behavior back to the previous and added the flag DisableEscapeHTML to provide users the option.