Prevent Angular from escaping HTML

后端 未结 1 1853
Happy的楠姐
Happy的楠姐 2020-12-06 16:13

When Angular interpolates markup and inserts scoped variables into a {{post}} style template, it escapes HTML.

The application I\'m building requires us

相关标签:
1条回答
  • 2020-12-06 17:05

    Your going to want to look at ngBindHtml.

    "To utilize this functionality, ensure that $sanitize is available, for example, by including ngSanitize in your module's dependencies (not in core Angular.)"

    0 讨论(0)
提交回复
热议问题