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
which for some reason also gets displayed.
I think it could be because the actual string is
but even when I try
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 "<" when I can see it is definately in the string?