attribute escape_js_separators_in_json

Ruby on Rails 8.1.2

Since v8.1.2

If true, encode LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) as escaped unicode sequences (‘\u2028’ and ‘\u2029’). Historically these characters were not valid inside JavaScript strings but that changed in ECMAScript 2019. As such it’s no longer a concern in modern browsers: caniuse.com/mdn-javascript_builtins_json_json_superset.

Type at least 2 characters to search.

↑↓ navigate · open · esc close