Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

HTML comments are removed by sanitize #2007

Open
vivek241 opened this issue Oct 7, 2016 · 0 comments
Open

HTML comments are removed by sanitize #2007

vivek241 opened this issue Oct 7, 2016 · 0 comments

Comments

@vivek241
Copy link

vivek241 commented Oct 7, 2016

HTML comments of the form are remove by sanitize

var s = '<!-- a test div tag --><div id="one"></div>';
sanitize(s) => '<div id="one"></div>'

How do we allow HTML comments using the sanitize method?

This is causing an issue in my application as it uses IE9's conditional comments

<!--[if IE 9]>
    <p>You are using IE 9</p>
<![endif]-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant