My metatag description
contains a text with accents or special caracteres.
I'm creating it in Controller
MVC and I send to view
through of viewbag
.
By the way, my text html
(when I use browser's view HTML sourcecode) is getting with a different code.
Example:
orign text: Produtor's Event em 10 Kirkpatrick St, até N...
html text: Produtor's Event em 10 Kirkpatrick St, até...
I need to care about this? Or I need to correct to a new code? How can I?
The solution is easier.
Use @Html.Raw
<meta name="description" content="@Html.Raw(ViewBag.description)" />