Browse Source

Fix Html special chars bug

Carsten Porth 5 years ago
parent
commit
091496c8bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/components/tweet-body/tweet-body.html

+ 1 - 1
app/src/components/tweet-body/tweet-body.html

@@ -2,7 +2,7 @@
 <div>
   <div class="tweet-array">
     <span class="tweet-array-part" *ngFor="let part of tweetArray">
-      <span *ngIf="part.type =='text'" class="text">{{ part.text }}</span>
+      <span *ngIf="part.type =='text'" class="text" [innerHtml]="part.text"></span>
       <a *ngIf="part.type == 'url'" href="{{ part.url }}">{{ part.text }}</a>
       <mention *ngIf="part.type == 'user_mention'" [username]="part.text" [userId]="part.userId"></mention>
       <hashtag *ngIf="part.type == 'hashtag'" [hashtag]="part.text"></hashtag>