我想在Thymeleaf的字符串中加上双引号,我有以下形式:
<td th:text='${"Value of \"" + item + "\" is \"" + value + "\"."}'></td>
Run Code Online (Sandbox Code Playgroud)
我想要的结果是:
<td>Value of "apple" is "1.5".</td>
Run Code Online (Sandbox Code Playgroud)
但是我得到以下异常:
EL1065E: unexpected escape character.
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
thymeleaf ×1