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
       <div
35
       <div
36
         className={classnames(`${props.customClass}__messagelist__item__content`, 'timeline__body__messagelist__item__content')}
36
         className={classnames(`${props.customClass}__messagelist__item__content`, 'timeline__body__messagelist__item__content')}
37
         style={props.fromMe ? styleSent : styleReceived}
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
     </li>
40
     </li>
45
   )
41
   )
46
 }
42
 }