Is there a risk in using @Html.Raw?

后端 未结 3 674
梦毁少年i
梦毁少年i 2021-01-18 11:18

Is there a risk in using @Html.Raw? It seems to me there shouldn\'t be. If there is a risk then wouldn\'t that risk already exist regardless of using @Htm

3条回答
  •  一生所求
    2021-01-18 11:51

    Correct, the risk is in how it is used. There's no risk inherent in Html.Raw. It's a tool, nothing more.

提交回复
热议问题