播放框架模板引擎 - 我可以在@Html()内部转义HTML解码吗?

时间:2013-06-14 16:19:15

标签: html html5 scala playframework playframework-2.0

请参阅this question for the full story

这就是我所拥有的:

<input type="text" data-provide="typeahead" data-source='@Html(param)' data-items="4">

假设@param在没有@Html()转义的情况下评估为[&quot;can&#x27;t&quot;,&quot;hi&quot;, &quot;boom&quot;],而["can't","hi", "boom"]评估为@Html()。

我可以在这里调用@Html(参数)但是不能转换从&#x27;'的转换吗?

0 个答案:

没有答案