Skip to content

Infinite loop caused by unclosed character ref in MarkupParser#content #306

Closed
@aldiyen

Description

@aldiyen

Putting an unclosed character ref (&#) in XML causes an infinite loop.
Example code:

import scala.io.Source
import scala.xml.parsing.XhtmlParser
val text = "<html><body>test &# test </body></html>"
XhtmlParser(Source.fromString(text))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions