php - HTML Tidy removes comments with conditions -



php - HTML Tidy removes comments with conditions -

i making utilize of html tidy , i've had @ config options here.

i've made utilize of option:

$config = array( 'hide-comments' => 1 );

however, removes comments such this:

<!-- test -->

and this:

<!--[if ie 6]>special instructions ie 6 here<![endif]-->

should removing latter, know still comment serves purpose - maybe should utilize option?

i'm pretty sure there no alternative it.. after html comment. recommend find alternative, or maintain html comments.. can't heavy.

php html tidy

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -