Kiedy próbowałem pokazać moje dane jako tekst-html, to wyświetlane w formacie HTML, ale kiedy odświeżone strony, otrzymuję ten błąd:AngularJS: Jak rozwiązać problem "Próba użycia niebezpiecznej wartości w bezpiecznym kontekście"?
[$sce:unsafe] Attempting to use an unsafe value in a safe context.
Oto moje angularjs Kod:
data.attributes.task_name = $sce.trustAsHtml(data.attributes.task_name);
HTML
<span ng-bind-html="taskdata.attributes.task_name" data-html="true" title="{{reminder.attributes.message}}"></span>
Czy [moja odpowiedź] (http://stackoverflow.com/a/41997335/4927984) rozwiązała Twój problem? – Mistalis