Escaping quotes in velocity template

后端 未结 2 1109
情深已故
情深已故 2020-12-18 18:11

I have a java method, that takes a few strings. This method needs to be called from a Velocity Template. However, the strings are too complex, with lots of single quotes, do

2条回答
  •  臣服心动
    2020-12-18 19:07

    See the Velocity Escape Tool:

    https://velocity.apache.org/tools/2.0/apidocs/org/apache/velocity/tools/generic/EscapeTool.html

提交回复
热议问题