Move helper function

This commit is contained in:
Alan Grainger
2026-02-09 11:30:56 +13:00
parent 2af6b4bbf0
commit ea4f16a436
2 changed files with 10 additions and 10 deletions
+1 -10
View File
@@ -1,20 +1,11 @@
import immich from './immich'
import { Response } from 'express-serve-static-core'
import { Asset, AssetType, ImageSize, IncomingShareRequest, SharedLink } from './types'
import { canDownload, getConfigOption } from './functions'
import { canDownload, escapeHtml, getConfigOption } from './functions'
import archiver from 'archiver'
import { respondToInvalidRequest } from './invalidRequestHandler'
import { sanitize } from './includes/sanitize'
function escapeHtml (str: string): string {
return str
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#039;')
}
class Render {
lgConfig