gjson icon indicating copy to clipboard operation
gjson copied to clipboard

Undocumented change to non-HTML escaped strings

Open RichardoC opened this issue 1 year ago • 1 comments

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!

RichardoC avatar Jul 30 '24 10:07 RichardoC

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

tidwall avatar Jul 30 '24 12:07 tidwall