Skip to content

Bug not able to parse style attribute with rgba function #135

@mrgodhani

Description

@mrgodhani

Describe the bug
vue-safe-html does not parse style attribute that has rgba function in css. Even though style attribute is allowed.

To Reproduce
Steps to reproduce the behavior:

  1. Add to allowedTags
  2. Add style to allowedAttributes
  3. Try to parse "Text" with vue-safe-html
  4. Notice whole text would be removed instead as it is not able to handle rgba function in style.Expected behavior
  5. Try to parse "Text" with vue-safe-html. Notice this would work fine.

If and <style> is allowed it should work as expected.

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