I am trying to write a string to a file using C#, the output i am looking for should be like this
<meta name="geo.region" content="Asia"/>
to achieve this i have tried this code,
writer.WriteLine(@"<meta name=""geo.region"" content="""+MetaTags.Region+"""/>");
but the output is,
<meta name="geo.region" content="Asia/>
No double quotes after "Asia"
I have also tried
writer.WriteLine(@"<meta name=""geo.region"" content="""+MetaTags.Region+"""/>");
but it shows a syntax error