refactor: de-alias

This commit is contained in:
Tony 2025-09-30 00:40:03 +08:00
parent 0935681bb7
commit fb7e42cef3
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ export const route: Route = {
const items = eventListEl.map((item, index): DataItem => {
const el = $(item);
const a = el.find('.event-card-details a.event-card-link').first();
const fallbackTitle = a.attr('aria-label') || a.text() || a.toString();
const fallbackTitle = a.attr('aria-label') || a.text() || a.html();
const eventData = eventsData[index];
if (eventData === undefined) {

View File

@ -52,7 +52,7 @@ async function handler(/* ctx*/): Promise<Data> {
item.category = content('.div.topics > a')
.toArray()
.map((ele) => content(ele).text());
item.description = content('.post-body').toString();
item.description = content('.post-body').html();
return item;
})
) as Promise<DataItem>[]