mirror of https://gitee.com/answerdev/answer.git
fix: kbd tag show as text
This commit is contained in:
parent
b0c71a9d33
commit
1712a1ab19
|
@ -173,6 +173,8 @@ function diffText(newText: string, oldText: string): string {
|
|||
if (typeof oldText !== 'string') {
|
||||
return newText
|
||||
?.replace(/\n/gi, '<br>')
|
||||
?.replace(/<kbd/gi, '<kbd')
|
||||
?.replace(/<\/kbd>/gi, '</kbd>')
|
||||
?.replace(/<iframe/gi, '<iframe')
|
||||
?.replace(/<input/gi, '<input');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue