From 37ae07cfd90b04c81019cbbf1356a9fbc5fb0d4e Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Wed, 22 May 2024 20:41:25 -0400 Subject: [PATCH] fixed - link text escaping function --- template-parts/blocks/resource-links/resource-links.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template-parts/blocks/resource-links/resource-links.php b/template-parts/blocks/resource-links/resource-links.php index 7caf89a..b669f52 100644 --- a/template-parts/blocks/resource-links/resource-links.php +++ b/template-parts/blocks/resource-links/resource-links.php @@ -54,7 +54,7 @@ if ( $links ) { foreach ( $links as $key => $row ) { if ( ! empty( $row['link'] ) ) { - $resource_select_link = esc_url( $row['link'] ); + $resource_select_link = esc_html( $row['link'] ); } if ( ! empty( $row['icon'] ) ) { $icon = esc_url( $row['icon']['url'] ); @@ -64,7 +64,7 @@ } ?> - +