AngularJS: escaped characters in model assigned to input value

时光毁灭记忆、已成空白 提交于 2019-12-08 04:16:07

问题


I have such problem: on the server I read data and use htmlentities on it, so my letters like ä are changed to the ä and I want to show this as a value of the input tag, e.g.

<input type="text" ng-model="data.name" />

but here instead of ä character I see escaped version of it. If I show this value using e.g.

<span ng-bind-html="data.name"></span>

everything works.

What can I do to make it works properly?

来源:https://stackoverflow.com/questions/25241645/angularjs-escaped-characters-in-model-assigned-to-input-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!