NIHVIVO-2425 Apply json-escaping to the query results to prevent JSON format errors

This commit is contained in:
ryounes 2011-03-28 15:57:11 +00:00
parent 1e16db9c0c
commit 445721f066
2 changed files with 8 additions and 5 deletions

View file

@ -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>
]