mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
feat(xml parser): Only allow angular syntax extensions if configured.
Configure via the public `angularSyntax` property on EasySAXParser and the XmlParser wrapper.
This commit is contained in:
@ -148,6 +148,14 @@ export class XmlParser implements definition.XmlParser {
|
||||
}
|
||||
}
|
||||
|
||||
public get angularSyntax() : boolean {
|
||||
return this._parser.angularSyntax;
|
||||
}
|
||||
|
||||
public set angularSyntax(value: boolean) {
|
||||
this._parser.angularSyntax = value;
|
||||
}
|
||||
|
||||
public parse(xmlString: string): void {
|
||||
if (this._processNamespaces) {
|
||||
this._namespaceStack = [];
|
||||
|
Reference in New Issue
Block a user