Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "html_instructions" : "Turn u003cbu003eleftu003c/bu003e onto u003cbu003eEnggårdsgadeu003c/bu003e"
- 'u003cbu003eleftu003c/bu003e' == '<b>left</b>'; // true
- JSON.parse(JSON.stringify({a : 'Turn u003cbu003eleftu003c/bu003e onto u003cbu003eEnggårdsgadeu003c/bu003e'}));
- var directions = "Turn u003cbu003eleftu003c/bu003e onto u003cbu003eEnggårdsgadeu003c/bu003e";
- directions.normalize();
- //it will return : "Turn <b>left</b> onto <b>Enggårdsgade</b>"
- String.prototype.toUnicode = function(){
- var hex, i;
- var result = "";
- for (i=0; i<this.length; i++) {
- hex = this.charCodeAt(i).toString(16);
- result += ("\u00"+hex).slice(-7);
- }
- return result;
- };
Add Comment
Please, Sign In to add comment