mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 01:45:18 +00:00
Allow \< in our xml validator (#2166)
This commit is contained in:
parent
2225d11cf5
commit
f2e0e2f15a
@ -86,6 +86,7 @@ app.directive('wzXmlFileEditor', function() {
|
||||
const text = $scope.xmlCodeBox.getValue();
|
||||
let xml = replaceIllegalXML(text);
|
||||
xml = xml.replace(/..xml.+\?>/, '');
|
||||
xml = xml.replace(/\\</, '\ <');
|
||||
xml = xml.replace(/\\</gm, '');
|
||||
xml = xml.replace(/<!--[\s\S\n]*?-->/gm, '');
|
||||
const xmlDoc = parser.parseFromString(
|
||||
|
Loading…
Reference in New Issue
Block a user