This is my Code
<input type="text" ng-model="data.htmlcode" />
$scope.data={};
In the above html page contains text field. when i enter html content in that text field like<div> <h1> welcome </h1> </div>, that content i want to convert to text otherwise that will be calling to mvc controller like using $http services.
eg:- $http.post("/controller/action?data="+$scope.data)