Razor @ Html.Raw () action

Role @ Html.Raw () of

@ Html.Raw () method with the output string of html tags, such as:
@ Html.Raw ( "<div style = 'Color: Red'> red </ div>")
Results: red
 
If not, the output will be: <div style = 'color: red'> red </ div>

Guess you like

Origin www.cnblogs.com/longyong007/p/12567689.html