Map Escape Key to Caps Lock and Other Tweaks

Refer: https://dev.to/yuyabu/how-to-use-caps-lock-key-as-esc-on-ubuntu-18-1g7l

Gnome Tweaks as a "Keyboard & Mouse Section", "Addtional Layout Options"

Currently using two tweaks because my old USB keyboard for an iPad DOES NOT have an escape key.

Choose "Caps Lock behavior', "Make Caps Lock and addtional Escape"

Since Caps Lock is remapped also adding a tweak to make using both shift keys to enable Caps Lock, and one shift key to disable Caps Lock

"Miscellaneous Compatibility Options", "Both Shift together enables Caps Lock; one Shift key disbles it"

Unescape or Escape with JavasScript Solutions

Solution for JavaScript

function unescapeHTML(html) {
var htmlNode = document.createElement("DIV");
htmlNode.innerHTML = html;
if(htmlNode.innerText !== undefined)
return htmlNode.innerText; // IE
return htmlNode.textContent; // FF
}

Solution for JQuery

function unescapeHTML(html) {
return $("<div />").html(html).text();
}
function escapeHTML(html) {
return $("<div />").text(html).html();
}

JavaScript unescape() Function

var str = "Need tips? Visit W3Schools!";
var str_esc = escape(str);
document.write(str_esc + "<br>")
document.write(unescape(str_esc))

The output of the code above will be:
Need%20tips%3F%20Visit%20W3Schools%21
Need tips? Visit W3Schools!

The unescape() function was deprecated in JavaScript version 1.5. Use decodeURI()

JavaScript decodeURI() Function

var uri = "my test.asp?name=ståle&car=saab";
var enc = encodeURI(uri);
var dec = decodeURI(enc);
var res = enc + "<br>" + dec;

The result of res will be:
my%20test.asp?name=st%C3%A5le&car=saab      // Encoded URI
my test.asp?name=ståle&car=saab             // Decoded URI