-4

i want to know how to insert umlaut(") to StringBuilder..

TEXT in HTML :::

<iframe src ="navigation.html" linkTarget = "iframe">

C#

StringBuilder htmlBuilder = new StringBuilder();
htmlBuilder.AppendLine("<iframe src = 'navigation.html' linkTarget = 'iframe'>")

With 'navigation.html' html not working correctly ... i need Append "navigation.html" ,

I want to hear a lot of yours ideas how it could be made ...

Like using chars .. etc.. :)

Gambodgo
  • 3
  • 3
  • 2
    You might want to edit your question - `"` isn't an umlaut, it's just double quotes. I found it very confusing for a while. – Jon Skeet Mar 23 '21 at 14:47
  • or this https://stackoverflow.com/questions/3905946/how-to-add-double-quotes-to-a-string-that-is-inside-a-variable – Selvin Mar 23 '21 at 14:49

1 Answers1

1

I think you're just missing the option of using \ to escape the double quote within a string literal:

htmlBuilder.AppendLine("<iframe src=\"navigation.html\" linkTarget=\"iframe\">");
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194