OVMS3/OVMS.V3/components/duktape/config/config-options/DUK_USE_NONSTD_JSON_ESC_U2028_U2029.yaml

14 lines
446 B
YAML

define: DUK_USE_NONSTD_JSON_ESC_U2028_U2029
introduced: 1.1.0
default: true
tags:
- ecmascript
- compliance
description: >
When enabled, Duktape JSON.stringify() will escape U+2028 and U+2029 which
is non-compliant behavior. This is recommended to make JSON.stringify()
output valid when embedded in a web page or parsed with eval().
When disabled, Duktape provides the compliant behavior, i.e. no escaping
for U+2028 and U+2029.