Allow \< in our xml validator (#2166)

This commit is contained in:
Pablo Torres 2020-03-30 12:16:54 +02:00 committed by GitHub
parent 2225d11cf5
commit f2e0e2f15a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(