Showing HTML comment strings (<!-- -->) in HTML files

Posted by Andrei on Stack Overflow See other posts from Stack Overflow or by Andrei
Published on 2010-04-16T09:28:56Z Indexed on 2010/04/16 9:33 UTC
Read the original article Hit count: 483

Filed under:
|

Hello all.

I'm building a source code search engine, and I'm returning the results on a HTML page (aspx to be exact, but the view logic is in HTML).

When someone searches a string, I also return the whole line of code where this string can be found in a file. However, some lines of code come from HTML/aspx files and these lines contain HTML specific comments ().

When I try to print this line on the HTML page, it interprets it as a comment and does not show it on the screen....how should I go about solving this so that it actually shows up?

Any help would be welcomed. Thanks.

edit: err...i see now that firebug could help me with this:

<!-- -->

© Stack Overflow or respective owner

Related posts about html

Related posts about comments