From 28f870a0baf63f96727861fea338c685cb6fd3e8 Mon Sep 17 00:00:00 2001 From: Alquen Sarmiento Date: Thu, 9 Oct 2025 09:45:53 +0800 Subject: [PATCH] fix: use wp_kses_post instead of esc_html to allow dynamic content --- src/block/posts/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/posts/index.php b/src/block/posts/index.php index e12838a17..976ee3f01 100644 --- a/src/block/posts/index.php +++ b/src/block/posts/index.php @@ -132,7 +132,7 @@ function generate_render_item_from_stackable_posts_block( $post, $attributes, $t // Read More Link. if ( strpos( $new_template, '!#readmoreText!#' ) !== false ) { - $new_template = str_replace( '!#readmoreText!#', esc_html( $readmore_text ), $new_template ); + $new_template = str_replace( '!#readmoreText!#', wp_kses_post( $readmore_text ), $new_template ); } return $new_template;