Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$sanitize removes the style attribute #10406

@acollard

Description

@acollard

The HTML sanitize code removes the style attribute. We are running into this issue while rendering html content generated by https://github.com/angular-ui/ui-tinymce.

So this code:

$sanitize('<span style="font-size: 18px">Large</span>')

will return

'<span>Large</span>'

I don't think there are any security vulnerabilities with the style attribute but I could be wrong.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions