Replace quotes in string.
s = s.Replace("\"", "");
Generating quotes in string.
Ex: label.setObjectText(“Barcode1”, “1008800400002”);
sb.Append(@"label.setObjectText(""Barcode1"", """ + row["Barcode1"].ToString() + @""");" + Environment.NewLine);
Display quotes string in razor.
@Html.Raw(Model.PrintStringWithQuote)
Comments