javascript decode string code example
Example 1: javascript parse to string
var bar = foo.toString();
Example 2: parse string javascript
parseFloat("16.5"); // 16.5
parseInt("34.6"); // 34
JSON.parse('{ "name":"John", "age":30, "city":"New York"}'); // {name: "John", age: 30, city: "New York"}
Example 3: unescape html js
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
var Title = $('<textarea />').html("Chris' corner").text();
console.log(Title);
</script>