Commit a194a47b authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

Fix #40 Fixing escaped values for keepass xml import

parent e360df1f
......@@ -28,6 +28,14 @@
managerImport.register_importer(importer_code, importer);
}
function unescape_value(value) {
value = value.replace(/&lt;/g , "<");
value = value.replace(/&gt;/g , ">");
value = value.replace(/&amp;/g , "&");
return value;
}
/**
* @ngdoc
* @name psonocli.importKeePassXml#transform_to_secret
......@@ -68,7 +76,7 @@
continue;
}
var key = value['Key'];
var val = value['Value'];
var val = unescape_value(value['Value']);
if (key === 'Notes') {
secret['website_password_notes'] = val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment