Skip to content

CSS not properly escaped in custom elements #872

@Rich-Harris

Description

@Rich-Harris

This code results in an à character normally:

<span class='icon'></span>

<style>
  .icon::before {
    content: '\e0'
  }
</style>

When compiled to a custom element, though, it comes out as e0 because the \ character isn't escaped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions