I need to use HTML comments to store specific data, but I don't want use comment schemes that already exist, as generated by programs like Dreamweaver <!-- #BeginLibraryItem "/File.lbi" --> or Frontpage.
How do I know what comment scheme would be least problematic, or at least not look like other existing comment conventions?
PS: I'm ...
Hi,
I just wonder how does html comment tag work with php code.
If I have the following code, does php parse it anyway?
<!--
<?php
echo "hi";
?>
-->
a simple question, but I guess it is important to know.
...
I am newbie.
many of javascript code start with <!--
<script type="text/javascript">
<!--
and finish with //-->
//-->
</script>
I think the reason is for compatibility.
But I cannot find the clue in any books.
even I cannot find anything with google.
...
I know some people use ANT to accomplish this, but I don't want to remove HTML comments from the actual jsp, I just want a way to strip them from output unless a users adds a parameter to the url to show the comments for debugging.
...
I have a deployment where Apache forwards to Tomcat running on the same system.
I'm running into a situation where Apache is stripping out comments in html returned by Tomcat. This is causing lines like the following to be removed causing the js to fail on IE:
"<!--if IE><script language="javascript" type="text/javascript" src="/scripts...
I tried:
<script>
$(function() {
$('.class').before('<!--');
$('.class').after('-->');
});
</script>
but it didn't work for a reason unknown to me.
Can anyone help me understand why it didn't work and how I would do it? Thank you, much appreciated.
...