Skip to content

Add SVG support to HTML sanitizerΒ #9277

@sumigoma

Description

@sumigoma
  • I'm submitting a ...

[X] feature request

Current behavior
SVGs are always rejected by HTML sanitizer

Expected/desired behavior
Sanitize SVG markup

  • What is the motivation / use case for changing the behavior?
    RC2 introduced HTML sanitization but it currently does not support SVG sanitization and all SVG elements are rejected. Our app makes heavy use of SVG injection.
  • Angular version: 2.0.0-rc.2

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