Remove bookmarkOutput; add saveStateModal and encodeStateModal

This commit is contained in:
Winston Chang
2016-06-03 12:20:00 -05:00
committed by Joe Cheng
parent d7c94052a2
commit 94804d972c
7 changed files with 62 additions and 155 deletions

View File

@@ -7,15 +7,6 @@ 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);
}