HF RL Explorer

Task: XML Comment Validation and Sanitization

Task: XML Comment Validation and Sanitization: a task in Terminal-Lego-15k (Harbor dataset). The XML specification (W3C) strictly forbids the use of -- (double hyphen) inside XML comments. An XML comment starts with <!-- and ends with -- , but the string -- must not occur within the comment body…

The task

The XML specification (W3C) strictly forbids the use of `--` (double hyphen) inside XML comments. An XML comment starts with `<!--` and ends with `-->`, but the string `--` must not occur within the comment body. This means comments like `<!-- foo -- bar -->` and `<!-- foo --- -->` are invalid XML, even though they…

Part of PrimeIntellect/Terminal-Lego-15k.