I have some javascript code written on top of c# with string builder like following:
StringBuilder cstext = new StringBuilder();
How to write these two lines without any syntax error, I am facing problems with writing those lines:
cstext.Append("data.setFormattedValue(row, 0, data.getFormattedValue(row, 0).replace(/src=".*"/i, 'src="' + src + '"'));");
(Error here is in this part (/src=".*"/i, 'src="' + src + '"'));)
and
cstext.Append("if(childrenOfChildren == "")");
(Error is here == "" its facing conflicts with other "")
Sorry for this non understand question but I can't explain better. Thanks