1
我有一個數據從api返回像實體一樣的html,我的問題是如何通過使用angular JS中的過濾器將它們轉換爲日文字符。這些是返回的示例字符。將html特殊字符轉換爲日文字符
$scope.name = '現'
我希望發生像
.filter('unsafe', function($filter) {
return function(val) {
// translate here
};
})
檢查http://stackoverflow.com/questions/23230680/angularjs-displaying-html-unicode – arunprakashpj