Angular ignoring special characters

  angularjs, html

I’m trying to display a file name but when the name contains special characters it’s completely ignored.

This is the code:

<p class="meta-description" [innerHTML]="{{ vm.previewing.filename + ' | ' + vm.previewing.emailSubject }}">
{ vm.previewing.filename }}

<span ng-if="vm.previewing.emailSubject"> | {{ vm.previewing.emailSubject }}</span>

Even adding [innerHTML] is not fixing the issue.

This is what shows up on the page if the file is named ‘çx’ for example:

<p class="meta-description ng-binding" [innerhtml]="x.pdf | ">
   x.pdf  
<!-- ngIf: vm.previewing.emailSubject -->
</p>

Source: AngularJS Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.