I have some C# code in a string that looks like this:
content = 'var expData =
details.Select(x => x.Explanation.TextWithHtml).ToList();
var score = resData.SequenceEqual(ansData);
var explanation = "";';
How can I make it so the code is converted to the following using LINQ?
<td>01</td><td>var expData =
details.Select(x => x.Explanation.TextWithHtml ).ToList();</td>
<td>02</td><td>var score = resData.SequenceEqual(ansData);</td>
<td>03</td><td>var explanation = "";</td>
It sounds like you want something like:
You’d need to write
EscapeHtmlthough – you don’t want tags in your C# code to still end up as tags in the HTML!