|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<el-col class="video-card-container">
|
|
|
- <div class="video-card-wrapper" :title="video.title">
|
|
|
+ <div class="video-card-wrapper" :title="stripHtml(video.title)">
|
|
|
<el-card :body-style="{ padding: '0px' }" class="video-card shadow-hover">
|
|
|
<router-link target="_blank" :to="`/video/${video.videoId}`" class="cover-link">
|
|
|
<div class="image-container">
|
|
|
@@ -72,6 +72,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 过滤掉所有的 HTML 标签
|
|
|
+ stripHtml(html) {
|
|
|
+ if (!html) return '';
|
|
|
+ return html.replace(/<[^>]+>/g, '');
|
|
|
+ },
|
|
|
getVisited(visited) {
|
|
|
return handleVisited(visited)
|
|
|
}
|