Skip to content

Support to ignore "<" invalid syntax #451

@rudy-lath-vizio

Description

@rudy-lath-vizio

Hi!
I am currently having issues with formatting XML through prettier plugin which uses your library to implement their XML formatting. We are trying to figure out if it is possible to ignore certain syntax errors and continue formatting the rest of the file.

Example:
<Text text="< Back" />

This currently fails with SyntaxError: unexpected character: ->"<- at offset: XXX skipped 1 characters. (XXX:XXX) and doesn't format that file at all. I think the issue is with the < inside of the quotes. According to the XML spec, this is invalid syntax. We are wondering if there is a flag or a feature that can be used to ignore such errors and continue formatting the rest of it.

cc: @kddnewton

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