Fix handling of decoding contacts UID

A problem occurs when the contact UID contains a special character that
was HTML encoded (ex: space, &, ").
This commit is contained in:
Francis Lachapelle
2013-01-28 22:05:54 -05:00
parent ea13fd14c9
commit da757a19c6
4 changed files with 9 additions and 13 deletions

View File

@@ -12,11 +12,7 @@
/* The content of attribute values should be quoted properly by using the
equivalent entities. */
function dTreeQuote(str) {
return (str
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/\"/g, "&quot;")
.replace(/\'/g, "&apos;"));
return str.escapeHTML();
}
// Node object