Skip to content

Provide non-decoded text to parse consumers #2714

Closed
@jarrodldavis

Description

@jarrodldavis

Currently, parse from svelte/compiler decodes HTML entities (such as & or ˙). This causes tools like prettier-plugin-svelte that use the AST to generate source text to write decoded entities back to the template. It would be nice if either this decoding happened later (after the parsing phase) or if an additional, non-decoded property was provided on text nodes.

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