I'm trying to put the following text in a string, but I can not ... when there is no error in the double quotation marks of the at ... to getting crazy. Can anyone help me?
, { "@type": "ListItem", "position": 2, "item": { "@id": " link ", "name": "description xyz", "image": " link " } }
I'm trying something like this:
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 quotation marks) it is # 39; in place of the quotes
If I put \ "it's ecommercial print" instead of the quotation marks
How to solve this?