I have string variable with HTML entities:
var str = 'Some text & text';
I want to convert (decode) it to original characters:
Some text & text
.
JavaScript doesn't have built-in function to achieve wanted result. I can't use jQuery or DOM objects because I need it to work in Google Apps Script.
How can I do that in simple way?