I have the following HTML script
<h1>
This is heading one
</h1>
<p>
This is paragraph.
</p>
Now I want to seek your kind suggestions to add <html></html> in the above script using C#.
You can use a StringBuilder to achieve this also:
var stringBuilder = new StringBuilder();
stringBuilder.Append("<html>");
stringBuilder.AppendLine(<yourString>);
stringBuilder.AppendLine("</html>");
//to get the html use
var formatedHtml = stringBuilder.ToString();
Hope this helps,
Mishu
string? Can you show us what you've tried and the specific problem you've encountered?