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

HTML comments are removed by sanitize #2007

@vivek241

Description

@vivek241

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]-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions