I am pulling an XML template from the database and then using this template in my view (DYMO labels).
My issue is that when I use @Html.Raw, even with quotes around it, it only reads the first line as "Text" and after the line break reads the rest of the XML file as code on the page.
Picture below:
The first line appears fine, but starting with <DesktopLabel Version the XML is rendered as not plain text inside quotes.
Here is my current behind the scenes code:
var labelXml = '@Html.Raw(Model.XML)';
I need the entirety of the string stored in quotes ("", ''). Any help?
1