mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-07 00:30:50 +00:00
[AB-216] replacing js_string with json_string in order to escape characters, because js_string could lead to illegal escape sequences
This commit is contained in:
@@ -20,9 +20,9 @@
|
||||
<#include "abstracto_color">,
|
||||
<#assign id>${suggestionId}</#assign>
|
||||
<#if state = "ACCEPTED" || state = "REJECTED">
|
||||
"description": "~~${text?js_string}~~",
|
||||
"description": "~~${text?json_string}~~",
|
||||
<#else>
|
||||
"description": "${text?js_string}",
|
||||
"description": "${text?json_string}",
|
||||
</#if>
|
||||
<#if state = "ACCEPTED" || state = "REJECTED">
|
||||
"fields": [
|
||||
@@ -34,7 +34,7 @@
|
||||
,
|
||||
{
|
||||
"name": "<@safe_include "suggest_reason_field_title"/>",
|
||||
"value": "${reason?js_string}"
|
||||
"value": "${reason?json_string}"
|
||||
}
|
||||
</#if>
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user