Add ability to save and restore fileInputs. Also improve fileInput appearance

This commit is contained in:
Winston Chang
2016-05-26 16:39:49 -05:00
committed by Joe Cheng
parent 60f7b9077d
commit 7065652e9a
7 changed files with 132 additions and 8 deletions

View File

@@ -7,6 +7,15 @@ function escapeHTML(str) {
.replace(/\//g,"/");
}
function unescapeHTML(str) {
return str.replace(/&/g, "&")
.replace(/&lt;/g, "<")
.replace(/&gt;/g, ">")
.replace(/&quot;/g, '"')
.replace(/&#039;/g, "'")
.replace(/&#x2F;/g, "\/");
}
function randomId() {
return Math.floor(0x100000000 + (Math.random() * 0xF00000000)).toString(16);
}