fix: JSONで許可されないUnicode制御文字列をフロント側で変換するように修正
This commit is contained in:
parent
1a8bf7f3ba
commit
87f89621a9
@ -370,7 +370,8 @@
|
||||
// {% autoescape False%}
|
||||
// ジェネレータですこしずつ取得してリストに詰める
|
||||
// {% for bio_data_json_str in bio.bio_data_json_str() %}
|
||||
searchResultData.push(...JSON.parse('{{bio_data_json_str}}'))
|
||||
// unicode制御文字をエスケープしてからJSON.parseする
|
||||
searchResultData.push(...JSON.parse('{{bio_data_json_str}}'.replace(/[\u0000-\u001F]+/g, " ")))
|
||||
// {% endfor %}
|
||||
// {% endautoescape%}
|
||||
// {% endif %}
|
||||
|
||||
@ -273,7 +273,8 @@
|
||||
// {% autoescape False%}
|
||||
// ジェネレータですこしずつ取得してリストに詰める
|
||||
// {% for ultmarc_data_json_str in ultmarc.ultmarc_data_json_str() %}
|
||||
searchResultData.push(...JSON.parse('{{ultmarc_data_json_str}}'))
|
||||
// unicode制御文字をエスケープしてからJSON.parseする
|
||||
searchResultData.push(...JSON.parse('{{ultmarc_data_json_str}}'.replace(/[\u0000-\u001F]+/g, " ")))
|
||||
// {% endfor %}
|
||||
// {% endautoescape%}
|
||||
// {% endif %}
|
||||
|
||||
@ -257,7 +257,8 @@
|
||||
// {% autoescape False%}
|
||||
// ジェネレータですこしずつ取得してリストに詰める
|
||||
// {% for ultmarc_data_json_str in ultmarc.ultmarc_data_json_str() %}
|
||||
searchResultData.push(...JSON.parse('{{ultmarc_data_json_str}}'))
|
||||
// unicode制御文字をエスケープしてからJSON.parseする
|
||||
searchResultData.push(...JSON.parse('{{ultmarc_data_json_str}}'.replace(/[\u0000-\u001F]+/g, " ")))
|
||||
// {% endfor %}
|
||||
// {% endautoescape%}
|
||||
// {% endif %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user