【发布时间】:2017-08-18 06:25:42
【问题描述】:
我在 ionic 中使用了 get json。
$http.get($scope.webServiceUrl+"example.php")
.then(function(response){
$rootScope.lists = response.data;
});
我用php写了webservice
echo json_encode($data,JSON_HEX_TAG);
返回json数据并打印页面
text: "<h1>enes</h1>"
Json[{"id":"0","text":"<h1>enes</h1>"}]
打印到页面时的结果
不接受是 html 元素。我该如何解决?
【问题讨论】:
标签: html json ionic-framework element