2016-12-31 11 views
2

저는 다국어 응용 프로그램을 가지고 있으며 언어 중 하나에 특수 문자 인 움라우트가 있습니다. 레이블, 제목, 표제에는 잘 표시되지만 자리 표시 자 텍스트에는 표시되지 않습니다. 여기 내가 가지고있는 코드 :anglejs 앱이 ui-select 필드의 자리 표시 자 텍스트에 특수 문자를 표시하지 않습니다.

<label translate="app.title"></label> 
<ui-select name="myoption" ng-model="app.option" theme="selectize"> 
    <ui-select-match placeholder="{{ 'app.placeholder' | translate }}"> 
     {{$select.selected.value}} 
    </ui-select-match> 
    <ui-select-choices repeat="o.key as o in tras.app.options | filter: $select.search"> 
     <div ng-bind-html="o.value | highlight: $select.search"></div> 
    </ui-select-choices> 
</ui-select> 

라벨 제목은 잘 표시되고 또는 ö ä 같은 특수 문자가 있습니다. 그러나 동일한 단어는 자리 표시 자 텍스트에도 있지만 &#228으로 표시됩니다. 왜 이런 식으로 행동합니까? 누군가 그것을 고칠 수 있을까요?

$translateProvider.useSanitizeValueStrategy(null); 
+0

이 질문과 관련 될 수 있습니까? http://stackoverflow.com/questions/21097513/how-to-output-html-unicode-characters-from-an-expression? –

답변

1

과 같이 마크 업에 대한 사용 ng-bind-html :

<ui-select-match placeholder="{{ 'app.placeholder' | translate }}" 
       ng-bind-html="selected.selected.value"> 
</ui-select-match> 

하지만 자리에 대한 당신 '