mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
Merge pull request #68 from BEDOLAGA-DEV/main
Fix lint error: use const instead of let for cleaned variable
This commit is contained in:
@@ -17,7 +17,7 @@ export function formatSettingKey(name: string): string {
|
||||
// Strip HTML tags and template descriptions from setting descriptions
|
||||
export function stripHtml(html: string): string {
|
||||
if (!html) return ''
|
||||
let cleaned = html
|
||||
const cleaned = html
|
||||
.replace(/<[^>]*>/g, '')
|
||||
.replace(/ /g, ' ')
|
||||
.replace(/&/g, '&')
|
||||
|
||||
Reference in New Issue
Block a user