From 3af28b03ac46c02da3e2b86af601c9ed3ee9a214 Mon Sep 17 00:00:00 2001 From: tbradsha <32492176+tbradsha@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:08:15 -0700 Subject: [PATCH] Add ENT_COMPAT again --- .../synced-newspack-blocks/class-newspack-blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/packages/jetpack-mu-wpcom/src/features/newspack-blocks/synced-newspack-blocks/class-newspack-blocks.php b/projects/packages/jetpack-mu-wpcom/src/features/newspack-blocks/synced-newspack-blocks/class-newspack-blocks.php index 1e9ea349eb8b8..7b7e91f7d97df 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/newspack-blocks/synced-newspack-blocks/class-newspack-blocks.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/newspack-blocks/synced-newspack-blocks/class-newspack-blocks.php @@ -1101,7 +1101,7 @@ public static function filter_excerpt( $attributes ) { } // Set excerpt length (https://core.trac.wordpress.org/ticket/29533#comment:3). - $excerpt = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $excerpt ), $excerpt_length, static::more_excerpt() ) ) ); + $excerpt = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $excerpt, ENT_COMPAT ), $excerpt_length, static::more_excerpt(), ENT_COMPAT ) ) ); return $excerpt; };