【发布时间】:2018-04-29 17:27:42
【问题描述】:
我有一个使用 springTemplateEngine 生成非 html 文本的方法。 我的模板如下所示:
some text
[[${variable}]]
但是当我运行模板引擎并将variable 设置为带引号的字符串时:
string with "" quotes
引号替换为html代码:
some text
string with "" quotes
有什么办法可以避免这种行为并在结果字符串中出现实际的引号?
期望的输出应该是
some text
string with "" quotes
【问题讨论】:
标签: java spring special-characters template-engine