mirror of https://gitee.com/answerdev/answer.git
fix: review kbd cannot render as tag
This commit is contained in:
parent
df79e4b8a0
commit
583bd34f1c
|
@ -135,7 +135,9 @@ const Index: FC = () => {
|
|||
<Col lg={{ span: 7, offset: 1 }}>
|
||||
<Alert variant="secondary">
|
||||
<Stack className="align-items-start">
|
||||
<span className="badge text-bg-secondary">{editBadge}</span>
|
||||
<span className="badge text-bg-secondary mb-2">
|
||||
{editBadge}
|
||||
</span>
|
||||
<Link to={itemLink} target="_blank">
|
||||
{itemTitle}
|
||||
</Link>
|
||||
|
|
|
@ -190,6 +190,8 @@ function diffText(newText: string, oldText: string): string {
|
|||
return result
|
||||
.join('')
|
||||
?.replace(/<iframe/gi, '<iframe')
|
||||
?.replace(/<kbd/gi, '<kbd')
|
||||
?.replace(/<\/kbd>/gi, '</kbd>')
|
||||
?.replace(/<input/gi, '<input');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue