请参阅this question for the full story。
这就是我所拥有的:
<input type="text" data-provide="typeahead" data-source='@Html(param)' data-items="4">
假设@param在没有@Html()转义的情况下评估为["can't","hi", "boom"]
,而["can't","hi", "boom"]
评估为@Html()。
我可以在这里调用@Html(参数)但是不能转换从'
到'
的转换吗?