FIX escaping html for content-title #href
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-05-14 15:25:57 +02:00
parent 29022cb1fa
commit 349d20686f

View File

@ -196,8 +196,8 @@ function build_page_chapter_index($blocks)
if ($block['blockName'] == 'homegrade-content-blocks/content-heading' && isset($block['attrs']['title']) && isset($block['attrs']['headingLevel']) && $block['attrs']['headingLevel'] == "h2") {
array_push($chapterBlockIndex, [
'block-type' => $block['blockName'],
'anchor' => "#" . $block['attrs']['idName'],
'title' => $block['attrs']['title'],
'anchor' => "#" . esc_html($block['attrs']['idName']),
'title' => esc_html($block['attrs']['title']),
]);
}
if ($block['blockName'] == 'homegrade-content-blocks/chapitrage-thematique') {