OVMS3/OVMS.V3/components/duktape/config/feature-options/DUK_OPT_NO_NONSTD_JSON_ESC_U2028_U2029.yaml

11 lines
413 B
YAML

define: DUK_OPT_NO_NONSTD_JSON_ESC_U2028_U2029
introduced: 1.1.0
tags:
- ecmascript
description: >
By default Duktape JSON.stringify() will escape U+2028 and U+2029 which
is non-compliant behavior. This is the default to make JSON.stringify()
output valid when embedded in a web page or parsed with eval(). This
feature option enables the compliant behavior, i.e. no escaping for U+2028
and U+2029.