Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在生成 xml 文件时,我必须在错误消息标记中编码文本。我的标签是“ErrorMessage”任何带有特殊字符的文本,例如 <>#$%^&“/ErrorMessage”。使用 rythm 模板引擎生成文件时,有没有办法对这些特殊字符进行编码?
除非您使用 .raw() 扩展名,否则它们应该自动转义。如果某些字符未正确转义,请在 github 上提交问题