AngularJS - 将JSON字符串转换为HTML代码

时间:2017-02-01 07:53:38

标签: javascript jquery angularjs json

        {
            author_signature: 'What is beauty if the brain is empty.',
            date_created: '2016-12-01 (16:15)',
            content: '<p>Potenti elit lectus augue eget iaculis vitae</p>',
        },

当角色将角色传递给视图时,您能否帮助我将“内容”转换为HTML代码...

目前,它会返回

<div>" <p>Potenti elit lectus augue eget iaculis vitae</p> "</div>

谢谢:D

0 个答案:

没有答案