How to display html in a text box using ng-model? Or how can I disable or cancel sanitized functionality for my model?
I can correctly display data using ng-bind-html-unsafe, as in the following example, but the more I can not access input using $ scope.formData [data.name].
<textarea ng-bind-html-unsafe="formData[data.name]"></textarea>
When I try to do this, it only displays the sanitized code, and I can access the input using $ scope.formData [data.name]:
<textarea ng-model="formData[data.name]"></textarea>
The input is encoded and looks like this:
Funktionalität "isHybrid", Übersicht "Kategorien anzeigen" / "Ki
Is there any filter / from the angular -way window or do I need to create a directive to solve this problem?
UPDATE: I skipped this problem by disabling php encoding, but maybe there is still a good solution for manually decoding data using angularjs using an html tag or filter?
source share