title: HTML decoding in AngularJS
body: <p>We are using AngularJS version 1.5.6 and HTML characters are not displayed correctly in text. I've tried many codes but haven't been successful. There are a lot of associated topics in StackOverflow and I've tried most of them, but the HTML code structure still appears.</p>
  <p>For example.</p>
  <pre><code>2 &lt;sup&gt;3&lt;/sup&gt;
  </code></pre>
  <p>Displaying as. In more complex HTML codes, unfortunately, even the text is now difficult to read. How can I get HTML codes decoded?</p>
  <p>core.js</p>
  <pre><code>app.controller('stockCheckAppController', function ($scope, $http) {
      stockCheckAppLoad(); 
      function stockCheckAppLoad() {
          $http.get(&quot;https://example.com/getSto&quot;).success(function (stockCheckAppData) {
              $scope.stockCheckAppLoad.innerHTML = stockCheckAppData;
          })
      }
  });
  </code></pre>
  <p>app.js:</p>
  <pre><code>var app = angular.module('stockCheckApp', []);
  (function () {
      'use strict';
      angular.module('utils.autofocus', [])
          .directive('autofocus', ['$timeout',
              function ($timeout) {
                  return {
                      restrict: 'A',
                      link: function ($scope, $element) {
                          $timeout(function () {
                              $element[0].focus();
                          });
                      }
                  };
              }
          ]);
  })();
  </code></pre>
  <p>index.html</p>
  <pre><code>&lt;h3 class=&quot;text-white&quot;&gt;{{stockCheckAppData.name}}&lt;/h3&gt;
  </code></pre>