问题描述
我正在使用google closure templates {release-2020-08-24},并为各种语言(en,ja,ch和ko)设置了本地化消息。其中一些消息包含html内容(锚标记)。 例如:
= NullType
此消息在以下模板中使用:
usage.hint=Please look at the <a href="www.example.com" target="_blank">documentation</a>.
使用javascript渲染此模板时,其输出为
{template .demoTemplate}
<p>{messages.usage.hint}</p>
{/template}
在升级到 release-2020-08-24 版本之前,我使用了 noAutoescape 打印指令,并且显示了相同的消息,例如:
请查看documentation。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)