I have to display some HTML from our system and do by using
DivOutline.InnerHtml = outlinetext;
where outlinetext is a string of HTML

However the string contains code as below
"<!--[if !supportLists]-->"

which for some reason also gets displayed.

I think it could be because the actual string is

("&lt;!--[

but even when I try
outlinetext.Replace("&lt;", "<");

the text does not seem to get replaced

Can anyone tell my either how to make the comments not display or why the string.replace function cannot pict out "&lt" when I can see it is definately in the string?