0
I’m trying to put the following text in a string, but I can’t... when I can’t find the wrong double quotes in the arroba... I’m going crazy. Can someone help me?
,{ "@type": "Listitem", "position": 2, "item": { "@id": "http://www.enderecosite.com", "name": "description Xyz", "image": "http://addressite/Tumb-sharefacebook.jpg" } }
I’m trying something like:
string TextoComplicado = ",{
"@type": "ListItem",
"position": 2,
"item": {
"@id": "http://www.enderecosite.com",
"name": "descrição xyz",
"image": "http://enderecosite/tumb-compartilhamento-facebook.jpg"
}
}";
This variable will be placed inside a script tag in my View:
<script type="application/ld+json"> @*Apenas detalhes do Imovél?*@
@Model.TextoComplicado
</script>
If I put ' (single quotes) is printed #39; instead of quotation marks
If put " is printado ecomercial quot; in place of quotation marks
How to solve this?
Valew Rovan, but the output on my page is being " instead of quotation marks
– AlamO
I saw this... a moment that I’m going to hit... that’s already a matter of html...
– Rovann Linhalis
You’re right (it’s html). In the view I used @Html.Raw(Model.Textcompleted) and boom! It worked!!! Valew!
– AlamO
Htmldecode tbm Ok! Even valew
– AlamO
If you’ve solved it, don’t forget to mark it as an answer. Vlw
– Rovann Linhalis