mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add ability to add & < > and any other normal restricted xml character as long as it is inside either a pair of single quotes or double quotes.
This commit is contained in:
@@ -43,4 +43,9 @@ describe("xml parser", () => {
|
||||
assert.equal("Ω", last_data);
|
||||
});
|
||||
|
||||
it("resolves <> inside quotes", () => {
|
||||
parser.parse("<element name='<&>' blah=\"b<a&>\"/>");
|
||||
assert.equal("<&>", last_attrs.name);
|
||||
assert.equal("b<a&>", last_attrs.blah);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user