Hi guys,
I'm one of those who loves typing a lot of comments in my HTML pages, but would prefer those comments not to be visible if a user does a "view source" on a page. What's the best way--using PHP--to strip comments likes these:
Code:
<!-- Some note here. -->
<!--
Some
long
note
here.
-->
It should NOT strip conditional comments:
Code:
<!--[if IE 7]>
<link rel="stylesheet" href="/css/ie7.css" type="text/css" media="screen" />
<![endif]-->