AngularJS - Render HTML tags that are contained in a string

后端 未结 2 914
猫巷女王i
猫巷女王i 2020-12-17 11:11

My database stores product information, and a lot of this is organised into lists. I load the data into Angular as $scope.post.

For instance,



        
2条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 11:38

    ngBindHtml worked for me. See more in the docs here: https://docs.angularjs.org/api/ng/directive/ngBindHtml

提交回复
热议问题