feat: refactor detail page && play page support position param

This commit is contained in:
shinya
2025-06-19 22:27:47 +08:00
parent e45feeb1a8
commit 909aee0d91
5 changed files with 210 additions and 20 deletions

View File

@@ -12,6 +12,7 @@ function cleanHtmlTags(text: string): string {
.replace(/\n+/g, '\n') // 将多个连续换行合并为一个
.replace(/[ \t]+/g, ' ') // 将多个连续空格和制表符合并为一个空格,但保留换行符
.replace(/^\n+|\n+$/g, '') // 去掉首尾换行
.replace(/ /g, ' ') // 将   替换为空格
.trim(); // 去掉首尾空格
}