var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope, $sce) {
$scope.name = 'World';
$scope.getOffers = function() {
var txt1 = "aaaa" + "<br>" + "bbbb";
$scope.newData = $sce.trustAsHtml(txt1);
};
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>
document.write('<base href="' + document.location + '" />');
</script>
<link rel="stylesheet" href="style.css" />
<script data-require="angular.js@1.3.x" src="https://code.angularjs.org/1.3.20/angular.js" data-semver="1.3.20"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<p>Hello {{name}}!</p>
<button ng-click="getOffers()">get offers</button>
<div class="help-block" ng-show="newData ">{{ newData }}</div>
<div class="help-block" ng-show="newData " ng-bind-html="newData"></div>
</body>
</html>
/* Put your css in here */