Skip to content

Bootstrap 5, double escaping of SVG content #1012

Description

@bazineta

In the Bootstrap 5 SCSS, there's 4 instances of escape-svg() used, e.g., here

background-image: escape-svg($form-select-indicator), escape-svg($icon);

I think this is double-encoding the content, resulting in broken results. That is, escape-svg() is encoding the # in the color value to %23, etc., but since it's already wrapped in url(), the double-processing produces a broken result.

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