7
다른 html이없는 angularjs 개행 필터
줄 바꿈 문자 ( \n)를 html 로 변환하려고합니다 br. Google 그룹의이 토론에 따라 다음과 같은 내용 이 있습니다. myApp.filter('newlines', function () { return function(text) { return text.replace(/\n/g, '<br/>'); } }); 이 토론에서는보기에서 다음을 사용하는 것이 좋습니다. {{ dataFromModel | newline | html }} 이것은 이전 html필터를 사용하는 것처럼 보이지만 이제는 …