render read only comment as html
This commit is contained in:
parent
333948bab7
commit
ad26dd29ea
|
@ -44,7 +44,7 @@ const Comment = props => {
|
||||||
|
|
||||||
return props.readOnly ? (
|
return props.readOnly ? (
|
||||||
<div className="r6o-widget comment">
|
<div className="r6o-widget comment">
|
||||||
<div className="r6o-readonly-comment">{props.body.value}</div>
|
<div dangerouslySetInnerHTML={{ __html: props.body.value }} className="r6o-readonly-comment"></div>
|
||||||
{ creatorInfo }
|
{ creatorInfo }
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
@ -82,4 +82,4 @@ const Comment = props => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Comment;
|
export default Comment;
|
||||||
|
|
Loading…
Reference in New Issue