yesodweb/shakespeare

Conditional comments in Hamlet

janvogt opened this issue · 3 comments

Hamlet removes HTML comments, including conditional comments. So sth. like

<!--[if IE 6]>
<p>You are using Internet Explorer 6.</p>
<![endif]-->

does not work.

Is it possible to exempt these like it has been done for <!-- #SSI -->?

I guess it would be a little bit more involved to achieve sth. like this.

<!--[if IE 6]>
  <p>You are using Internet Explorer 6.

I don't feel confident enough in TemplateHaskell to try implementing it myself. So right now, I am doing this as a workaround:

<p><!--[if IE 6]><p>You are using Internet Explorer 6.</p><![endif]-->

@snoyberg prefect! This works. Thanks a lot.