How To Remove All %3 , %20 from Ionic View ng-repeat?


#1

Hi This is my string “%3Cp%3Efxdgf%20fgf%20dgf%20fdgfg%3C/p%3E” I want to Display Normal text But it is including %3 , %20 and Please Help Me Out How to remove those unwanted things

Here is my Ionic View … My Data {{m.Description}} Contains the Above Data

>     <div class="task_details" ng-click="task(m,$index,m.TaskID)" >
>                 <a style="text-decoration:none;" class="taskname">
>                     <span>#{{m.TaskID}}</span>&nbsp;&nbsp;{{m.Description}}
>                 </a>
>                 <div class="dateandseen">
>                  <div class="date_div">{{m.CreatedDate}}</div>
>                   <div class="seen_type">
>                                    <!--  <i ng-if="m.CreatedBy==m.AssignID" class="ion-checkmark-circled balanced " ng-click="deleteEmployee(m.TaskID)"></i> -->
>                   </div>
>                 </div> 
>                 <div class="clr"></div>
>               </div>

#2

replace {{m.Description}} with {{ getDataFunction(m.Description)}} in HTML and place following function in your controller

$scope.getDataFunction = function(val){

	var val1 = val.replace(/%3/g,'');
            val1 = val1.replace(/%20/g,'');
	return val1;

}

should solve your problem