使用 dangerouslySetInnerHTML={{ __html: htmlString}}
范例:
return (
<div>{props.record.contents.map(value =>
(
<div className={styles.expendBlock}>
<p dangerouslySetInnerHTML={{ __html: value.content }} />
</div>
)
)}
</div>
)