Skip to content

Commit

Permalink
fix(route): strip tags from the title of the 3DM news route (#16015)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry40408 authored Jun 27, 2024
1 parent 01b9573 commit ebff6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/3dmgame/news-center.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function handler(ctx) {
}
const a = item.find('.text a');
return {
title: a.text(),
title: a.first().text(),
link: a.attr('href'),
description: item.find('.miaoshu').text(),
pubDate: timezone(parseDate(item.find('.time').text().trim()), 8),
Expand Down

0 comments on commit ebff6c5

Please sign in to comment.