我在我的Rails应用程序中有一些翻译(config/locale/[en|de].yml),我使用以下方式在视图中使用:<%=t "teasers.welcome" %>
。例如:
teasers:
welcome: "<strong>Welcome</strong> to the Website ..."
在Rails 2.3.8中,这个功能可以正常工作,但在Rails 3中,HTML被转义并翻译为
<
。我该如何防止这种翻译并在我的翻译文件中使用HTML,就像在Rails 2.3.8中一样?