Is the use of the AntiXss library necessary / recommended in the mvc 3 razor app? Where can I find out more about encoding options for mvc 3?
Razor automatically encodes output to prevent XSS. If you need to output HTML markup, you can use the @Html.Raw(myVariable) method or make sure that the variables you need not to encode are of type HtmlString .
@Html.Raw(myVariable)
HtmlString
Source: https://habr.com/ru/post/1347900/More articles:How to add xml-stylesheet node processing instruction with Python 2.6 and mini-mini? - pythonWhat does it mean to "move" a file to the list of included paths? - phpget horizontal and vertical accuracy in an Android device - androidDoes Multiple Shard Key Help Performance In Mongodb? - mongodbC # event inheritance - c #Why are blocked pages not counted in the size of the working set? - windowsCreating and binding objects in a workflow - multithreadingUsing multiple values ββin a SQL query, where the condition is sqlPossible error in odeint β interp1d interplay? - pythoniOS does not load the next level - iosAll Articles