title: Decode mixed ASCII codes from a string in JavaScript
body: <p>I've a JavaScript code that extracts JSON strings from other pages from my blog (Blogger), but many special characters in those strings are as <code>&amp;#?????;</code>, where <code>?????</code> is a number up to 5 digits, or as something like <code>\74br /\76</code>, which should be a <code>&lt;br /&gt;</code>.</p>
  
  <p>Both come mixed in the same string, and both seem to be ASCII, the first one being decimal/html and the second one being octal.</p>
  
  <p>How can I decode this mess to their respective characters by using JavaScript? Is there any existing function or proper solution for this?</p>