Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JSON解析JSON中的html标记_Json_Angularjs_Angular Filters - Fatal编程技术网

JSON解析JSON中的html标记

JSON解析JSON中的html标记,json,angularjs,angular-filters,Json,Angularjs,Angular Filters,可以用JSON值解析html标记吗?可能是通过过滤器?我有以下JSON { "title" : "Auto Donation Program", "shortname" : "auto_donation_program", "summary": "Donated vehicles find new homes through this program. Recipients are eligible to apply if they have been actively

可以用JSON值解析html标记吗?可能是通过过滤器?我有以下JSON

{
    "title" : "Auto Donation Program",
    "shortname" : "auto_donation_program",
    "summary": "Donated vehicles find new homes through this program. Recipients are eligible to apply if they have been actively participating at Vineyard Cincinnati or The Healing Center under the guidelines of the program for six months.",
    "description" : "<h2>Give your automobile to a new home to help a family in need</h2><p>Please contact Deena Casagrande at (513) 346-4080 Ext. 207 to make arrangements for auto donations. Please do not drop your car off in the parking lot.</p><h2>Tax Benefits</h2><p>It seems that every non-profit these days is encouraging you to donate your vehicle to charity and \"get a tax deduction.\" But there’s a simple distinction between donating your car to The Healing Center versus donating it almost anywhere else.</p><p>As of January 1, 2005, the rules on how much you can write off your taxes were tightened. If the organization sells your car, as most do, you can deduct only the amount they sold it for--and they may sell it for far less than it’s worth. However, if the organization gives your car to someone who will drive it, as The Healing Center does, you can claim full Blue Book value--a significant difference on your taxes. (It’s important to note that when you donate a vehicle, you receive a tax deduction, not a tax credit.)</p><h2>So where does your car end up? </h2><p>Those on the receiving end of The Healing Center’s auto donation program must fill out a detailed questionnaire, meet the eligibility requirements of the program, and be approved by the Benevolence Review Team. Vehicles are given to single parent families or individuals needing transportation for employment or who are enrolled in school to obtain employment.</p>"
  } 
{
“标题”:“自动捐赠计划”,
“短名”:“自动捐赠计划”,
“总结”:“捐赠车辆通过该计划找到新家。如果受赠人根据该计划的指导方针在辛辛那提葡萄园或康复中心积极参与了六个月,则有资格申请。”,
“说明”:“将您的汽车送到新家帮助有需要的家庭请致电(513)346-4080分机207与迪娜·卡萨格兰德联系,安排汽车捐赠。请不要将您的汽车停在停车场。

税收优惠现在似乎每个非营利组织都在鼓励您将车辆捐赠给慈善机构和\”获得税收减免\"但是,将你的汽车捐赠给康复中心和捐赠给几乎任何其他地方之间有一个简单的区别。

从2005年1月1日起,关于你可以注销多少税款的规定变得更加严格。如果该组织像大多数人一样出售你的汽车,你只能扣除他们出售汽车的金额,而且他们可能会以更高的价格出售但是,如果组织将你的汽车交给了驾驶人,就像医疗中心一样,你可以申请全额的蓝皮书价值——这是你的税收上的一个显著差异。(需要注意的是,当你捐赠一辆汽车时,你会得到税收减免,而不是税收抵免。)

那么,你的汽车最终会停在哪里呢?康复中心汽车捐赠计划接收端的人必须填写详细的问卷,满足该计划的资格要求,并得到慈善审查小组的批准。汽车将提供给单亲家庭或需要交通工具就业的个人或者是为了就业而入学的学生。

“ }
在我的模板中显示为:

<p>{{service.description}}</p>
{{service.description}

这对我很有用:

<div ng-bind-html="'{{service.description}}' | to_trusted"></div>
请参见此处接受的示例
angular.module('app')
.filter('to_trusted', ['$sce', function($sce){
    return function(text) {
        return $sce.trustAsHtml(text);
    };
}]);