how can I do so that I do not get numbers in my script when I retrieve information? MVC C #

-1

The problem is as follows: I am using mvc in visual study, the problem is when I want to retrieve the information within a script which I do with an @foreach, where the information I send has quotes, which are then they change with numbers, which makes the operation of the same wrong, in any case, what can I do so that the numbers do not come out?

**

    
asked by Elisandro Rejon 21.12.2017 в 06:49
source

1 answer

1

By default ASP.NET MVC performs a HtmlEncode of the content you submit in the view. To avoid this coding you should use the Raw method of the HtmlHelper :

@Html.Raw(item)
    
answered by 21.12.2017 / 08:29
source