fix: story template-story class, datetime attr, imageName escaping, raw content comments
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
@@ -21,7 +21,7 @@ class SnapGalleryShortcode extends Shortcode
|
||||
|
||||
foreach ($images as $i => $filename) {
|
||||
if (!$filename) continue;
|
||||
$url = $baseUrl . $filename;
|
||||
$url = $baseUrl . htmlspecialchars($filename, ENT_QUOTES);
|
||||
$caption = htmlspecialchars($captions[$i] ?? '', ENT_QUOTES);
|
||||
$alt = htmlspecialchars($alts[$i] ?? '', ENT_QUOTES);
|
||||
$eager = $i === 0 ? 'eager' : 'lazy';
|
||||
|
||||
Reference in New Issue
Block a user