diff --git a/modules/seo-tools/jetpack-seo-titles.php b/modules/seo-tools/jetpack-seo-titles.php index a0d9726ae8131..a7c2758d6379a 100644 --- a/modules/seo-tools/jetpack-seo-titles.php +++ b/modules/seo-tools/jetpack-seo-titles.php @@ -131,7 +131,7 @@ public static function get_token_value( $token_name ) { case 'post_title': case 'page_title': - return get_the_title(); + return the_title_attribute( array( 'echo' => false ) ); case 'group_title': return single_tag_title( '', false );