Browse Source

add attribut dangerouslySetInnerHTML to fix the wysiwyg comment in the timeline

AlexiCauvin 6 years ago
parent
commit
1c74424b56
1 changed files with 2 additions and 6 deletions
  1. 2 6
      frontend_lib/src/component/Timeline/Comment.jsx

+ 2 - 6
frontend_lib/src/component/Timeline/Comment.jsx View File

@@ -35,12 +35,8 @@ const Comment = props => {
35 35
       <div
36 36
         className={classnames(`${props.customClass}__messagelist__item__content`, 'timeline__body__messagelist__item__content')}
37 37
         style={props.fromMe ? styleSent : styleReceived}
38
-
39
-      >
40
-        <div className='timeline__body__messagelist__item__content__text'>
41
-          {props.text}
42
-        </div>
43
-      </div>
38
+        dangerouslySetInnerHTML={{__html: props.text}}
39
+      />
44 40
     </li>
45 41
   )
46 42
 }