how to remove html tags from json output
<p>This is my JSON data: </p>

<pre><code> {"articleList":[{"menu_name":"Abdominal Crunch","introduction":"&lt;ul&gt;\n&lt;li&gt;Abdominal crunch is one of the most important and basic exercise that &amp;nbsp;helps to strengthen the abdominal muscles and also helps to prevent lower back pain or strain.&lt;\/li&gt;\n&lt;li&gt;While doing abdominal crunch, please maintain a proper form in order to avoid injury. Also to avoid strain you must not bend your neck.&lt;\/li&gt;\n&lt;li&gt;Keep your movements slow, don&amp;rsquo;t do so many crunches at once as it may cause injury, it applies to a famous saying &amp;ldquo;Too much of everything is not good for nothing&amp;rdquo;.&lt;\/li&gt;\n&lt;li&gt;Perform 10-15 repetitions with correct form for each rep.&lt;\/li&gt;\n&lt;li&gt;Main muscles targeted\n&lt;ul&gt;\n&lt;li&gt;rectus abdominis (front abdominal muscles)&lt;\/li&gt;\n&lt;li&gt;Obliques (side abdominals)&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"abs-crunch21.png","menu_icon2":"abs-crunch31.png","menu_icon3":"abs-crunch4.png","menu_icon4":"noimg.jpg","id":"109","parent_id":"108"},{"menu_name":"Ball Crunch","introduction":"&lt;ul&gt;\n&lt;li&gt;While performing ball crunches, proper form is very important to avoid injury.&lt;\/li&gt;\n&lt;li&gt;If you do this exercise properly for 12 sets, you can feel affect in your abdominal muscles.&lt;\/li&gt;\n&lt;li&gt;If you have neck problem, then you must perform it very slowly and carefully.&lt;\/li&gt;\n&lt;li&gt;Keep a bigger size ball for preforming this excercise.&lt;\/li&gt;\n&lt;li&gt;Targeted Muscles\n&lt;ul&gt;\n&lt;li&gt;Rectus Abdominis&lt;\/li&gt;\n&lt;li&gt;Other info:\n&lt;ul&gt;\n&lt;li&gt;Level type: Beginner&lt;\/li&gt;\n&lt;li&gt;Mechanics type: Isolation&lt;\/li&gt;\n&lt;li&gt;Force type: pull&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"ball-crunch11.png","menu_icon2":"ball-crunch21.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"110","parent_id":"108"},{"menu_name":"Ball Pass","introduction":"&lt;ul&gt;\n&lt;li&gt;Ball pass exercise is an effective exercise to improve your posture and to get a perfect six pack for you&lt;\/li&gt;\n&lt;li&gt;Main Muscles Targeted&lt;br \/&gt;\n&lt;ul&gt;\n&lt;li&gt;Deep abdominal muscles&amp;nbsp;&lt;\/li&gt;\n&lt;li&gt;&amp;nbsp;Internal and external oblique&amp;rsquo;s&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"ballpass1.png","menu_icon2":"ballpass2.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"111","parent_id":"108"},{"menu_name":"Leg Raise","introduction":"&lt;ul&gt;\n&lt;li&gt;Leg raise is an easy and great exercise for strengthening your abdominal muscles. Do this exercise (Leg raise) regularly&amp;nbsp;&amp;nbsp; to get a good abs. This exercise can do many wonders for your major or minor muscles groups. If you do this exercise daily, you will get excellent results.&lt;\/li&gt;\n&lt;li&gt;You can use carpet or yoga mat to feel comfortable while doing this exercise. More better will be if you use a flat bench. But be sure to do this exercise properly and regularly.&lt;\/li&gt;\n&lt;li&gt;Keep your thighs perpendicular to your body while raised your legs towards celling.&lt;\/li&gt;\n&lt;li&gt;You can press your palm on the floor as medium of support for raising your legs. And also keep your lower back&amp;nbsp;&amp;nbsp; attached with the floor.&lt;\/li&gt;\n&lt;li&gt;People having lower back problems are not encouraged to perform this exercise.&lt;\/li&gt;\n&lt;li&gt;Main Muscles Targeted:\n&lt;ul&gt;\n&lt;li&gt;Rectus abdominis.&lt;\/li&gt;\n&lt;li&gt;Hip flexors&lt;\/li&gt;\n&lt;li&gt;Internal and external obliques.&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;ul&gt;\n&lt;li&gt;Additional main muscles&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"leg-raise11.png","menu_icon2":"leg-raise2.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"112","parent_id":"108"},{"menu_name":"Reverse Cunch","introduction":"&lt;ul&gt;\n&lt;li&gt;Reverse crunches gives strength to your front Abdominals muscle, this is an isolation mechanics type exercise for the beginner.&lt;\/li&gt;\n&lt;li&gt;Once your knees reaches to chest, just wait for two seconds and inhaling slowly move your legs back to the ceiling.&lt;\/li&gt;\n&lt;li&gt;Instead of bending your legs you may lift your legs straight to advance in this excercise&lt;\/li&gt;\n&lt;li&gt;Main muscles targeted:\n&lt;ul&gt;\n&lt;li&gt;Front abdominal or rectus abdominis&amp;nbsp;&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;li&gt;Additional muscles\n&lt;ul&gt;\n&lt;li&gt;Internal and external oblique&amp;rsquo;s&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"reversecrunch1.png","menu_icon2":"reversecrunch2.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"113","parent_id":"108"},{"menu_name":"Twist Crunch","introduction":"&lt;ul&gt;\n&lt;li&gt;\n&lt;div&gt;Twist crunches are easy way for strengthening stomach and creating&lt;\/div&gt;\n&lt;div&gt;flat abdominal muscles. The major reason for strengthening your abdominal&lt;\/div&gt;\n&lt;div&gt;muscles is to make your abdominal young.&lt;\/div&gt;\n&lt;\/li&gt;\n&lt;li&gt;\n&lt;div&gt;&amp;nbsp;People with back pain can fold a towel and use it on their back. These type&lt;\/div&gt;\n&lt;div&gt;of exercise also keeps your back healthy and strength&lt;\/div&gt;\n&lt;\/li&gt;\n&lt;li&gt;\n&lt;div&gt;As a beginner, do it slowly and carefully. This exercise uses isolation mechanism,&lt;\/div&gt;\n&lt;div&gt;you can use &amp;nbsp;&amp;nbsp;&amp;nbsp;cable to hold your legs, keep your elbows tight when performing this exercise.&lt;\/div&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"twist-crunch11.png","menu_icon2":"twist-crunch21.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"116","parent_id":"108"},{"menu_name":"Side Crunch","introduction":"&lt;ul&gt;\n&lt;li&gt;Complete 3 sets with 10-15 repetitions of this exercise. Once you feel that, you are able to complete 10-15 reps with ease, then make increment to the number of reps up to 20-25. At the beginning, you may feel temporary muscle failure.&lt;\/li&gt;\n&lt;li&gt;If you have neck problem, then you must perform &amp;nbsp;&amp;nbsp;slowly and carefully. Do not perform this exercise if you have back pain.&lt;\/li&gt;\n&lt;li&gt;Main muscles targeted:\n&lt;ul&gt;\n&lt;li&gt;&amp;nbsp;Obliques &amp;nbsp;&amp;nbsp;&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;li&gt;Synergists\n&lt;ul&gt;\n&lt;li&gt;Rectus abdominals&lt;\/li&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"side-crunch1.png","menu_icon2":"side-crunch2.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"117","parent_id":"108"},{"menu_name":"Body Weight Squat","introduction":"&lt;ul&gt;\n&lt;li&gt;Body weight squat is a great exercise which targets your abs, hips, legs &amp;ndash;calves and thighs.&lt;\/li&gt;\n&lt;li&gt;During Body weight squat, your body automatically functions your abs, hips, legs muscles while getting up and down from the seated position.&lt;\/li&gt;\n&lt;li&gt;Helps to increase the flexibility in the ankle and in the hips area. Very soon, You will find effect in those area.&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"body-weight-squat.png","menu_icon2":"body-weight-squat2.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"164","parent_id":"108"},{"menu_name":"Sprinter Situp","introduction":"&lt;ul&gt;\n&lt;li&gt;Sprinter sit-ups is a wonderful use for improving your abs muscle.&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"sprinter-situp.png","menu_icon2":"sprinter-situp2.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"166","parent_id":"108"},{"menu_name":"Side plank","introduction":"&lt;ul&gt;\n&lt;li&gt;Side plank is a great exercise for your abdominal obliques and the whole core.&lt;\/li&gt;\n&lt;li&gt;Does not need any special equipment except a mat.&lt;\/li&gt;\n&lt;\/ul&gt;","menu_icon":"side-plank11.png","menu_icon2":"side-plank21.png","menu_icon3":"noimg.jpg","menu_icon4":"noimg.jpg","id":"189","parent_id":"108"}]}
</code></pre>

<p>From below code, <code>response.data;  //this piece of code gives JSON data</code>  How can i remove html tags from here itself so that it can be sent vai <code>$scope.test = a</code> ?</p>

<pre><code>app.controller('myCtrl', function($scope, $http) {
    $http({
        method : "GET",
        url : "http://webservice.somewebsite.com/exercise/show/pid/107/mid/108/"
    }).then(function mySucces(response) { 
        var a=response.data;  //this gives JSON data as shown above, 
        $scope.test = a
    }, function myError(response) { 
        $scope.test = response.statusText;
    }); 
});
</code></pre>

<p>I tried this <code>$scope.test = a.replace(/&lt;\/?[^&gt;]+&gt;/gi, '')</code> but code stopped working </p>

<p>JSON data with HTML code which looks bad on UI
<a href="https://i.stack.imgur.com/omjeV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/omjeV.png" alt="enter image description here"></a></p>