File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3870,14 +3870,12 @@ static function ( $matches ) {
38703870 *
38713871 * The following replacement may appear insufficient, "<" is replaced
38723872 * with its JSON escape sequence "\u003C" without considering whether
3873- * the "<" is preceded by an escaping slash. JSON does not support
3874- * arbitrary character escaping (like JavaScript strings) so "\<"
3875- * is invalid JSON and would have to be preceded by
3876- * an escaped backslash: "\\<".
3873+ * the "<" is preceded by an escaping backslash. JSON does not support
3874+ * arbitrary character escaping in strings (unlike JavaScript) so "\<"
3875+ * is invalid JSON and does not need to be considered.
38773876 *
38783877 * @see https://www.json.org/json-en.html
38793878 */
3880-
38813879 $ plaintext_content = strtr (
38823880 $ plaintext_content ,
38833881 array ( '< ' => '\\u003C ' )
You can’t perform that action at this time.
0 commit comments