Quote from
luishp on August 26, 2020, 9:23 pm
By default if you put HTML code into a variable value it will be displayed as plain text. This can be avoided using ng-bind-html AngularJS directive. Note that, for security reasons, any JavaScript or CSS tag within the HTML will not be executed.
Please take a look at the attached sample.
<div ng-bind-html="[htmlcontent]"></div>
Let me know if you have any questions.
By default if you put HTML code into a variable value it will be displayed as plain text. This can be avoided using ng-bind-html AngularJS directive. Note that, for security reasons, any JavaScript or CSS tag within the HTML will not be executed.
Please take a look at the attached sample.
<div ng-bind-html="[htmlcontent]"></div>
Let me know if you have any questions.
Uploaded files:- You need to login to have access to uploads.
Vadim, farhad2008 and 2 other users have reacted to this post.
Vadimfarhad2008asmatnoyzen