Skip to content

Commit

Permalink
🐛 修复转义
Browse files Browse the repository at this point in the history
  • Loading branch information
WOSHIZHAZHA120 committed May 10, 2024
1 parent 1e36a1e commit d6fca75
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/tetrio/info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ const rankImage = asyncComputed(async () => {
return module.default
})
})
const unescape = (content: string) => {
const element = document.createElement('div')
element.innerHTML = content
return element.textContent
}
</script>

<template>
Expand All @@ -100,7 +106,7 @@ const rankImage = asyncComputed(async () => {
<template v-if="!isEmpty(data.user.bio)">
<div class="break-all line-clamp-3">
<span class="text-4.5">
{{ data.user.bio }}
{{ unescape(data.user.bio) }}
</span>
</div>
</template>
Expand Down

0 comments on commit d6fca75

Please sign in to comment.