render read only comment as html

This commit is contained in:
TED A. ⭕ 2023-10-02 12:50:28 +00:00 committed by GitHub
parent 333948bab7
commit ad26dd29ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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>
) : ( ) : (