refactor: de-alias
This commit is contained in:
parent
0935681bb7
commit
fb7e42cef3
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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>[]
|
||||
|
|
|
|||
Loading…
Reference in New Issue