HF RL Explorer

Task: Escape Special Characters in XML Attribute Values

Task: Escape Special Characters in XML Attribute Values: a task in Terminal-Lego-15k (Harbor dataset). When storing source code or expressions in XML files, special characters like & , < , , " , and ' must be properly escaped. While CDATA sections can be used for element text content, they cannot…

The task

When storing source code or expressions in XML files, special characters like `&`, `<`, `>`, `"`, and `'` must be properly escaped. While CDATA sections can be used for element text content, they **cannot** be used for attribute values. Attribute values require proper XML entity encoding.

Part of PrimeIntellect/Terminal-Lego-15k.