consistency with entity escaping

This commit is contained in:
rhiannon morris 2024-10-21 14:36:11 +02:00
parent 18629cb220
commit 645424a7d8
3 changed files with 8 additions and 5 deletions

View file

@ -156,7 +156,7 @@ makeItem nsfw file info@(Info {bg}) = [b|
</figure>
|]
where
title = fromMaybe info.title info.galleryTitle
title = escAttr $ fromMaybe info.title info.galleryTitle
dir = takeDirectory file
thumbnail = getThumb dir info
nsfw' = if nsfw && anyNsfw info then [b|$& nsfw|] else ""