|
-
Feb 20th, 2012, 09:48 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Problem displaying comments in inner HTML
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
("<!--[
but even when I try
outlinetext.Replace("<", "<");
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|