ng-bind-html
で書かれたようなテキストを取得する必要がありますが、角度変数にしてください。このコードとフィドルで分かりやすいかどうかを確認し、テキストで説明するのは少し難しいです:ng-bind-htmlで印刷された値を取得
var testApp = angular.module('TestApp', []);
testApp.controller('TestController', function($scope, $sce) {
$scope.wrappedValue = $sce.trustAsHtml('asdf<div>°C<br />aaa</div>'); //this is my input
var data = $scope.wrappedValue;
console.log(data); //here I want to get printed: "asdf\n°C\naaa"
});
http://jsfiddle.net/r565nb2p/3/
私はあなたが注意がこれを読んで感謝しています。ありがとう
'wrappedValue'を解析してHTMLタグを削除し、テキストのみを保持することができます。 – Mistalis