Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improperly handles greater-than within tag attribute #4

Open
stevendesu opened this issue Jan 8, 2017 · 0 comments
Open

Improperly handles greater-than within tag attribute #4

stevendesu opened this issue Jan 8, 2017 · 0 comments

Comments

@stevendesu
Copy link

I have the following XML:

<library>
    <book title="...">
        <author>...</author>
        <release-date>...</release-date>
        ...
    </book>
    <book title="...">
        ...
    </book>
</library>

This worked fine until I add a book with a great-than symbol in the name:

    <book title="3 > 2">
        <author>Mathematics</author>
        ...
    </book>

This turned into:

    <book title="3 >
        2">

        <author>Mathematics</author>
        ...
    </book>

I assume a regular expression is being used to detect tags and it's getting tripped up.

Per the RFC this is valid (although an ampersand or a less-than symbol is not valid): https://www.w3.org/TR/xml/#d0e888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant