Show html generated by using json2html at webpage [Django] [Python]?
<p>Following is my code in view: </p>

<pre><code> RESULTS= {}
 for k in RESULTS_LIST[0].iterkeys():
   RESULTS[k] = list(results[k] for results in RESULTS_LIST)
 RESULTS.pop('_id',None)
 html_table =  json2html.convert(json=RESULTS)
 return render(request,'homepage.html',{'html_table':html_table})
</code></pre>

<p>here I am arranging a data fetched from Mongo Db in a JSON named as RESULTS and by using JSON2HTML package, it is successfully generated html table for data given in JSON. To embedd the html table code in a blank division at html page, I am doing: </p>

<pre><code>&lt;div&gt;{{html_table}}&lt;/div&gt;
</code></pre>

<p>But it failed to display the table on page. I have tried numerous ways to make it but didn't succeed. Please help me to resolve this issue. if any relevant example, you have done before , then please guide me in a right direction. </p>

<p>JS code is: </p>

<pre><code>angular.module("homeapp",[])
.controller("homecontroller",['$http','$scope',function($http,$scope){
    $scope.search= {
        'keyword': null,
        'option': null,
        'startDate':null,
        'lastDate': null
    };
    $scope.search_info=function(){
        var search_req = {
            url:'/home',
            method:'POST',
            data:$scope.search
        }
        $http(search_req) //in case I dont want any response back or
        $http(search_req).success(function(response){     
            window.alert(response)
         }) //in case I need to check response
    }

}]);
</code></pre>

<p>I have got solution to this problem in an easy way via using js, which is given below and it worked.</p>

<pre><code>    $http(search_req).success(function(response){     
        $(".search_results").append(response);
     })
</code></pre>

python json django