SyntaxError: Unexpected token & in JSON
<p>I'm using the <code>$http.get()</code> to do a GET request, the response is in JSON, but with HTML encoding for some characters, one example is as below, " is encoded with <code>&amp;quot;</code></p>

<pre><code>{
    &amp;quot;description&amp;quot;:&amp;quot;invalid&amp;quot;,
    &amp;quot;errorCode&amp;quot;:&amp;quot;error.loginInvalid&amp;quot;
}
</code></pre>

<p>Also i'm using         <code>$httpProvider.interceptors.push('httpErrorsInterceptor');</code>, httpErrorsInterceptor will show the error information in <code>responseError</code>. Since the response JSON is not decoded properly, when try to process it, it will show <code>SyntaxError: Unexpected token &amp; in JSON</code> in console. I wonder how can we decode the response <code>JSON</code> when processing? in <code>$httpProvider</code>?</p>