关闭模板:使用html内容获取本地化消息

问题描述

我正在使用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 (将#修改为@)