NIHVIVO-2425 Apply json-escaping to the query results to prevent JSON format errors
This commit is contained in:
parent
1e16db9c0c
commit
445721f066
2 changed files with 8 additions and 5 deletions
|
@ -10,7 +10,8 @@
|
|||
[
|
||||
<#if results??>
|
||||
<#list results as result>
|
||||
{ "label": "${result.label}", "uri": "${result.uri}" }<#if result_has_next>,</#if>
|
||||
<#-- result.label and result.uri are already quoted -->
|
||||
{ "label": ${result.label}, "uri": ${result.uri} }<#if result_has_next>,</#if>
|
||||
</#list>
|
||||
</#if>
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue