We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8479d14 commit 2f596bdCopy full SHA for 2f596bd
themes/osi/template-parts/content-press-mentions.php
@@ -21,15 +21,16 @@
21
</div><!-- .entry-meta -->
22
23
<?php } ?>
24
- <?php
25
- $title = get_field( 'article_url' ) ?
26
- sprintf( '<a href="%s" rel="bookmark" target="_blank">%s</a>',
27
- esc_url( get_field('article_url') ),
+ <?php
+ $press_title = get_field( 'article_url' ) ?
+ sprintf(
+ '<a href="%s" rel="bookmark" target="_blank">%s</a>',
28
+ esc_url( get_field( 'article_url' ) ),
29
esc_html( get_the_title() )
30
) :
31
esc_html( get_the_title() );
-
32
- echo '<h1 class="entry-title post--title">'.$title.'</h1>';
+
33
+ echo '<h1 class="entry-title post--title">' . wp_kses_post( $press_title ) . '</h1>';
34
?>
35
36
<?php the_content(); ?>
0 commit comments