mirror of
https://github.com/AmanTahiliani/box-box.git
synced 2026-08-07 19:56:18 -04:00
feat(paddock): initial paddock briefing pages and store changes
This commit is contained in:
@@ -74,6 +74,13 @@ export function compareFinishPosition(a: number, b: number): number {
|
||||
return finishPositionOrder(a) - finishPositionOrder(b)
|
||||
}
|
||||
|
||||
export function stripHtml(html: string): string {
|
||||
if (!html) return ''
|
||||
const div = document.createElement('div')
|
||||
div.innerHTML = html
|
||||
return div.textContent ?? ''
|
||||
}
|
||||
|
||||
export function timeAgo(dateStr: string): string {
|
||||
if (!dateStr) return ''
|
||||
const d = new Date(dateStr)
|
||||
|
||||
Reference in New Issue
Block a user