mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix HTML entities in title
This commit is contained in:
parent
7b244f5a18
commit
f3cf02361a
@ -38,7 +38,7 @@
|
||||
</div>
|
||||
<div class="be-live-list-item-info">
|
||||
<div class="be-live-list-item-title" :title="item.title">
|
||||
{{ item.title }}
|
||||
{{ decodeTitle(item.title) }}
|
||||
</div>
|
||||
<div class="be-live-list-item-user" :title="item.uname">
|
||||
{{ item.uname }}
|
||||
@ -52,6 +52,12 @@
|
||||
import { VIcon, TextBox, DpiImage, VEmpty, VLoading } from '@/ui'
|
||||
import { getJsonWithCredentials, responsiveGetPages } from '@/core/ajax'
|
||||
|
||||
const decodeTitle = (title: string) => {
|
||||
const textArea = document.createElement('textarea')
|
||||
textArea.innerHTML = title
|
||||
return textArea.value
|
||||
}
|
||||
|
||||
interface LiveInfo {
|
||||
cover: string
|
||||
face: string
|
||||
@ -98,6 +104,7 @@ export default Vue.extend({
|
||||
this.refresh()
|
||||
},
|
||||
methods: {
|
||||
decodeTitle,
|
||||
async refresh() {
|
||||
try {
|
||||
this.items = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user