Skip to content

Commit 55041c0

Browse files
authored
Tweak: Sanitize content for allowed HTML tags for post title content (#118)
1 parent 081a12d commit 55041c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template-parts/archive.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
?>
2828
<article class="post">
2929
<?php
30-
printf( '<h2 class="%s"><a href="%s">%s</a></h2>', 'entry-title', esc_url( $post_link ), esc_html( get_the_title() ) );
30+
printf( '<h2 class="%s"><a href="%s">%s</a></h2>', 'entry-title', esc_url( $post_link ), wp_kses_post( get_the_title() ) );
3131
printf( '<a href="%s">%s</a>', esc_url( $post_link ), get_the_post_thumbnail( $post, 'large' ) );
3232
the_excerpt();
3333
?>

0 commit comments

Comments
 (0)